Activity Forums Salesforce® Discussions What is a ‘Resource in Salesforce’?

  • shariq

    Member
    September 6, 2018 at 2:30 pm

    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.

  • Avnish Yadav

    Member
    September 7, 2018 at 6:51 am

    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().

  • madhulika shah

    Member
    September 7, 2018 at 7:41 am

    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.

  • Parul

    Member
    September 21, 2018 at 12:10 pm

    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.

Popular Salesforce Blogs