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 the title, urlName, and contentBody of the content item in the content editor in an enhanced CMS workspace based on the content type—image, news, document, or custom content.

  • data
    • contentBody—The JSON representation of the content body, which varies depending on the content type. See JSON File Format for Content in Salesforce CMS in Salesforce Help.
    • title—The title of the content item.
    • urlName—The content slug, which is the last part of the URL address.
  • error—A validation error for invalid fields.