Content Area Functions

Use these functions to create and manipulate content areas in your account. Email messages, SMS messages, and landing pages can make use of content areas.

In your server-side JavaScript code, first load the core library using the syntax below:

The example functions in this document use the object ContentAreaObj, which returns the entire content area object. The ContentArea object returns only the content from the specified content area. Use the ContentAreaObj object with content area server-side JavaScript to prevent errors in your code.

To interact with a content area via server-side JavaScript, you must first initialize the object. The code below initializes an email with the external key of myCA.

After you initialize the content area, you can use the remaining functions.