Skip to content

$Templates

$Templates provides access to templates defined in the pool definition.

In some processes, you may need a template definition to use when sending custom email messages or PDF documents. Instead of hard-coding template content in scripts, you can use the $Templates object to: - Fetch template content. - Perform Transformation using the template.

1
const $Templates;

Capabilities

Rendering

  • Templates.Format: Formats a template by its name, using an optional XML node as input data.

Retrieval

  • Templates.Get: Retrieves the content of a template by its name.
  • Templates.Subject: Retrieves the subject of a template by its name, optionally using an XML node for data binding.