The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

getContent

Retrieves published content from an enhanced CMS workspace for an enhanced LWR site in Experience Cloud.

To get Salesforce CMS content from a CMS workspace for an Aura or non-enhanced LWR site, use the lightning/cmsDeliveryApi module listContent wire adapter instead.

With channelId parameter:

With siteId parameter:

  • channelOrSiteId— (Required) The ID for the enhanced LWR site on which you want to use CMS content.
  • contentKeyOrId— (Required) The content key or content ID for the CMS content that you want to use on your enhanced LWR site.