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:
- Start with <<
- End with >>
- embed scripts or expression in {{ }}
- Script function output(text); will also produces output to the template
- 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)