Skip to main content

CreateEmailHtmlBody

Sends a HTML email, using a template stored as a list item under Lists (Settings -> Advanced -> Lists). Placeholders are marked in DT format. For example, ${incident.id} for the incident ID.

Examples of available placeholders:

  • ${incident.labels.Email/from}
  • ${incident.name}
  • ${object.value} See incident Context Data menu for available placeholders

Note: Sending emails requires an active Mail Sender integration instance.

Script Data#


NameDescription
Script Typejavascript
Tagsemail, communication

Inputs#


Argument NameDescription
listTemplateThe list where the template is stored.
keyThe context key to store the HTML body.
objectThe values object provided as stringified JSON.
removeNotFoundWhether to replace a path not found, if true, with an empty string, otherwise to leave it as is.

Outputs#


PathDescriptionType
htmlBodyThe HTML body.Unknown