ContentBlockByID
→ stringRenders a Content Builder asset by its numeric identifier.
Available in:
Email
CloudPage
Automation
Triggered Send
Syntax
ContentBlockByID(id)
1 argument
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id |
number | Yes | The numeric ID of the Content Builder asset. |
Description
Renders a Content Builder block by its numeric asset ID. Prefer ContentBlockByKey() as it uses the external key which is more stable and human-readable than a numeric ID.
Example
var blockHtml = ContentBlockByID(12345);
Write(blockHtml);