Add the #DF24 Developer Keynote to your agenda. Join us in-person on 9/18 at 2:30 p.m. PT or on Salesforce+ at 5 p.m. PT for the must-see session built just for developers.

getContent

Retrieves published content from an enhanced CMS workspace for an enhanced LWR site, non-enhanced LWR site, or Aura site in Experience Cloud.

To get Salesforce CMS content from a non-enhanced 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.