TemplateRender
Renders a template with the given content and merge variables and returns the resulting HTML through the Transactional API.
Stored Procedure-Specific Information
To render a template, you must specify the TemplateName and TemplateContent. The TemplateContent parameter is a JSON array of objects, each with a name key (the editable region) and a content key (the content to inject). For example:
EXEC TemplateRender TemplateName = 'example-template', TemplateContent = '[{"name":"editable","content":"content"}]'
Input
| Name | Type | Required | Description |
| TemplateName | String | True | The immutable name or slug of a template that exists in the user's account. |
| TemplateContent | String | True | A JSON array of template content to render. Each item should be an object with a name key (the name of the mc:edit editable region) and a content key (the content to inject). |
| MergeVars | String | False | Optional merge variables to use for injecting merge field content. |
Result Set Columns
| Name | Type | Description |
| Success | String | Indicates whether the operation was successful. |
| Html | String | The rendered HTML with content and merge variables injected. |