Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To create a new or edit a template, click Create or copy an existing out-of-box template or another custom template for an event. 

Edit Template

The Edit Template screen shows the Template Components from the copied templatesome basic template information as well as the template components. The header shown below indicates it's a custom template.

...

Field

Description

Template Name

Name The name of the new template.

Events

Associate an event for the template (Ex. Workflow Request Completed). You can also assign more than one event to the same template.

Email Subject

The script to be used for email subject for the event(s).

Email BodyThe script to be used for email body for the event(s).
PayloadThe payload is used in the code editor to give suggestions of what variables and methods are available when accessing the $payload variable, as this will vary depending on the event. If more than one event is associated to this template, use this to switch between the selected events.

Template Components

The Email Subject and Email Body fields shows show the script needed to generate the content for the email message. FlexDeploy provides rich set of APIs to generate the HTML content. You can also use your custom styles as needed. 

Payload

Both Subject and Body will be able to reference the payload object related to an event. Using the shortcuts, you will be able to access all the data associated to an event using the variable $payload. Below table shows the Events and associate payload objects.

...