Action References
RenderDataAction
RenderDataAction
Purpose Renders structured data into formatted output (e.g., Markdown, HTML, or text) using a predefined template and MScript data. Often used for generating dynamic email bodies, PDF content, or previews.
When to use it
- After
CreateObjectAction(to render that object’s data) - Before
SendMailActionorDataToFileAction
Key fields
| Field | Type | Description |
|---|---|---|
inputData | MScript | The object or array to render into the template. |
template | String | Name of the template defined in the service library (e.g., invoiceTemplate). |
contextPropertyName | String | Where to save the rendered output. |
Example
{
"id": "a80-render-template",
"name": "renderInvoiceEmail",
"inputData": "this.emailPayload",
"template": "invoiceEmailTemplate",
"contextPropertyName": "emailHtml"
}
The rendered string (emailHtml) can be used as the email body or file content.
Was this page helpful?
Built with Documentation.AI
Last updated Jan 3, 2026