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.

ContentBlockByKey

Retrieve content from a specified content block in Content Builder

ContentBlockByKey(1, 2, 3, 4)

OrdinalTypeDescription
1stringRequiredExternal key for content block
2stringImpression region for content
3BooleanIndicates whether a call proceeds if it fails to retrieve content. A value of true returns an exception and terminates the call. A value of false allows the call to proceed.
4stringDefault content to display if the call does not return content from the specified content area