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);

See Also