Activity › Forums › Salesforce® Discussions › What is a ‘Resource in Salesforce’?
-
What is a ‘Resource in Salesforce’?
Posted by Anurag algoworks on September 6, 2018 at 2:22 PMWhat is a ‘Resource’ in Salesforce?
Parul replied 7 years, 9 months ago 5 Members · 4 Replies -
4 Replies
-
Hi Anurag,
Just like the ‘Object’ instance, we have learned in object orient programming Language, in the same way, ‘Resource’ is defined as an object of a type which can be an image, HTML file, text data, and any type of dynamic data. There are varieties of representation formats available in order to represent a resource. Some most common are enlisted below:
- JSON
- YAML
- XML
- HTML
Hope this helps.
- [adinserter block='9']
-
Hi Anurag,
Resources or Static resources allow you to upload content that you can reference in a Visualforce page. Resources can be archives (such as .zip and .jar files), images, stylesheets, JavaScript, and other files.
Static resources are managed and distributed by Lightning Platform, which acts as a content distribution network (CDN) for the files. Caching and distribution are handled automatically.Static resources are referenced using the $Resource global variable, which can be used directly by Visualforce, or used as a parameter to functions such as URLFOR().
-
Hi Anurag,
Static resources or resources in salesforce allow you to upload content that you can reference in a Visualforce page, including archives (such as .zip and .jar files), images, style sheets, JavaScript, and other files. Using a static resource is preferable to uploading a file to the Documents tab because:
- You can package a collection of related files into a directory hierarchy and upload that hierarchy as a .zip or .jar archive.
- You can reference a static resource in page markup by name using the $Resource global variable instead of hard-coding document IDs.
- You can use relative paths in files in static resource archives to refer to other content within the archive.
A single static resource can be up to 5 MB in size. An organization can have up to 250 MB of static resources. Static resources apply to your organization’s quota of data storage.
Thanks.
-
esources can be archives (such as .zip and .jar files), images, stylesheets, JavaScript, and other files.
Static resources are managed and distributed by Lightning Platform, which acts as a content distribution network (CDN) for the files. Caching and distribution are handled automatically.A single static resource can be up to 5 MB in size. An organization can have up to 250 MB of static resources. Static resources apply to your organization’s quota of data storage.
Thanks.
Log In to reply.