Static resources in Salesforce enable you to upload and reference various types of content, such as archives (.zip and .jar files), images, style sheets, JavaScript, and other files, specifically for use within your Salesforce organization.

Prerequisites

DO NOT change the file name or file type while saving this mapping file. 

Best Practices

  • Create a New Custom Static Resource: Ensure you create a new custom static resource in the target organization. The existing static resources from managed packages are outdated and do not work, which causes errors.

  • Update Mapping File with Custom Fields: Add any custom fields to the mapping file and update the static resource to sync these fields with RLP.

  • Verify Fields in RLP: Ensure that the fields you add to the mapping file already exist in RLP. If not, you encounter a “metadata for field xxx not found” error.

To Create a Static Resource in a Salesforce Org

  1. Go to Setup > App Setup > Develop > Static Resources.
  2. Click New and enter QuoteFieldNameMap in the Name field.
  3. Click Choose file and upload the mapping file.
  4. In the Cache Control dropdown, select one of the following values.
    1. Private: Select this to restrict API access to authenticated users only.
    2. Public: Select this to share static resource data cached on the Salesforce server with other users in your organization.
  5. Click Save


Next Step: Creating the Configure Products Button for RLS Flow