Loading
Salesforce now sends email only from verified domains. Read More
Help Agent Performance DegradationRead More
Salesforce CMS and the Digital Experiences App
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Salesforce CMS Content Key

          Salesforce CMS Content Key

          The Salesforce CMS content key is a unique identifier that sticks with your content through version updates and across Salesforce orgs, sites, and components. You can use the content key to copy content between orgs, such as from sandbox to production, using the Salesforce CMS export and import feature.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Performance, Unlimited, and Developer Editions

          Content keys help you track your content and maintain consistency. When you add a new content item to a Salesforce CMS workspace, it's automatically assigned a content key. The content key value can’t be customized.

          Content keys are 28 characters long and begin with the prefix MC, which stands for Managed Content. The content key can be found:

          • In the output file from the success email you receive after content is imported or exported. The content key is listed in the ref attribute.
          • On the content details page in a CMS workspace.
          • On the content variant details page in an enhanced CMS workspace.
          • In the Managed Content Delivery API response.
          • On the content detail page URL in an Experience Builder site. In the browser address bar locate the /{content type name}/{content slug}-MC portion of the URL.
            Content key location in content details URL

          Content Key Considerations

          When using the content key, there are few things to keep in mind.

          • For custom components, use the lightning:navigation component to navigate to a given pageReference or to generate a URL from a pageReference using the standard__managedContentPage type. See Lightning Aura Components Developer Guide: pageReference Types.
          • In Experience Builder site channels, we recommend that you change the existing Navigation Menu item on the CMS detail page to use the Content Key based URL. This action ensures that navigation to your content still works if your site is moved to another org. In your Salesforce CMS workspace, copy the URL on the content details page. Then, in Experience Builder, go to Settings | Navigation. Click the navigation menu name and then menu item. In the URL field, replace the URL with the one you copied from the CMS detail page. Then click Save Menu.

          For more information about how to import CMS content, see Import Content into Salesforce CMS.

           
          Loading
          Salesforce Help | Article