Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

To create a new or edit a template, 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 template, The header indicates it's a custom template.


Field

Description

Template Name

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.

Email BodyThe script to be used for email body for the event.
PayloadIf 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 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 shorcuts, 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.


Events

Payload Object Name

Workflow Request Scheduled
Workflow Request Rejected
Workflow Request Deploying
Workflow Request Completed
Workflow Request Failed
NotifProjectWorkflowRequest
Folder Request Scheduled
Folder Request Rejected
Folder Request Deploying
Folder Request Completed
Folder Request Failed
NotifApplicationRequest
Workflow Request Pending Approval
Workflow Approval Assigned
NotifProjectTask
Workflow Request Pending Approval
Workflow Predeploy Pending Review Workflow Predeploy Review Rejected
NotifProjectReviewTask
Folder Request Pending Approval
Folder Approval Assigned
NotifApplicationTask
Pipeline Gate Approval AssignedNotifPipelineGateTask
Pipeline Manual Step AssignedNotifPipelineStepTask
Pipeline Step Exec FailedNotifPipelineStepExectionRequest


Each payload object of an event holds different set of data. Please use the link for each payload and go through the methods available to structure your HTML content for the template. You can always use the Preview and Send Test options to test and validate your script using the test data available.



  • No labels