eMail Templates

eMail Templates are Scripts with some special considerations

you can switch between script style to template style user special tags << to start template and >> to end template.

Template Rules:

  1. Start with <<
  2. End with >>
  3. embed scripts or expression in {{ }}
  4. Script function output(text); will also produces output to the template
  5. You can specify template output using script function setOutput(“variableName”) the output of the script is held in this variable

Example

setOutput("subject");
<< Omni-Workflow Notification {{itemTitle}} is {{notification.getEventTitle()}} for Case# {{notification.caseId}} >>
setOutput("message");
output("testing Body");
<< Message is here >>



Email expects these variables:

  • subject
  • message
  • header(optional)