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.
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 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.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.