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.

ContentAreaByName

Returns the content stored in the content area specified by its name

ContentAreaByName(1, 2, 3, 4)

OrdinalTypeDescription
1stringRequiredName of specified content area
2stringRequiredName of any impression region contained in content area
3stringRequiredError message to deliver when the function can’t return content
4stringRequiredContent area to display when the function can’t find other content

In this sample code, the variable gets the information from the specified content area. The content is not written to the email or landing page you create. Instead, the content resides in the variable for use as any other string: