Action ReferencesRenderDataAction
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 SendMailAction or DataToFileAction

Key fields

FieldTypeDescription
inputDataMScriptThe object or array to render into the template.
templateStringName of the template defined in the service library (e.g., invoiceTemplate).
contextPropertyNameStringWhere 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