TreatAsContentArea

Overview

Treats content retrieved from a data extension or other source as though it is fixed content coming from a content area.

Syntax

TreatAsContentArea(1, 2, 3)

Function Properties

OrdinalTypeDescription
1stringRequiredKey value used to identify the content specified in the second string. Use the same key to identify distinct text and HTML versions of the content, as the function treats a key in a text content as distinct from a key in a HTML context. The application processes all keys in a case-insensitive manner.
2stringRequiredContent stored for an email send under the key specified in the first string. Retrieve content using the HTTPGET() or Lookup() AMPscript functions.
3stringImpression region name for the virtual content area used for tracking purposes

Usage

The sample code below pulls content from a data extension and saves it for reuse as a virtual content area under the key VirtualCA1:

The sample code below pulls content from a data extension and saves it for reuse as a virtual content area under a key specified through the KeyValue attribute or data extension field.

The sample code below pulls content from a data extension, saves it for reuse as a virtual content area under the key VirtualCA1, and assigns it the impression region name of Impression Region One: