ContentAreaByKey
→ stringRenders a classic content area (legacy Email Classic) by its external key.
Available in:
Email
CloudPage
Automation
Triggered Send
Syntax
ContentAreaByKey(key)
1 argument
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
key |
string | Yes | External key of the classic content area. |
Description
Renders a legacy “classic” content area from Email Classic (pre-Content Builder). For new development, use ContentBlockByKey() with Content Builder assets instead.
Example
var footer = ContentAreaByKey("classic-footer-key");
Write(footer);