Customize the Notification Email Body
You can update the default email body template to include task details, reviewer instructions, values from the workflow payload, and other relevant information that assignees may need to act on the task.
Predefined Variables for Task Notifications
The following table lists the predefined variables that you can use in a task notification email template. Note that the variable names are case-sensitive.
| Variable | Description | Syntax |
|---|---|---|
assignee |
User name of the task assignee. | {{assignee}} |
approverComment |
Stores the last comment against the task . | {{approverComment}} |
assigneeDisplayName |
Display name of the task assignee. | {{assigneeDisplayName}} |
actions |
List of actions. | {{ actions }}For example: |
actionDisplayName |
Display name of the action. For example, Approve, Reject. |
You can define the action display name as shown in the following syntax: |
createdDate |
Date of creation of the task. | {{createdDate}} |
commentStr |
Contains the comment provided during the approval or rejection of the current task. It does not include comments from previous task approvals, and displays a value in the task completion email. |
commentStr |
creatorDisplayName |
Stores the display name of the creator. | {{creatorDisplayName}} |
creatorName |
Stores the username of the creator. | {{creatorName}} |
dueDate |
Due date for completing the task. | {{dueDate}} |
expirationDate |
Expiry date of the task. | {{expirationDate}} |
externalUIURL |
Stores the URL of the external user interface used by the task. | {{externalUIURL}} |
fromUserDisplayName |
Stores the display name of the user.
|
{{fromUserDisplayName}} |
fromUserName |
Stores the user name of the user. | {{fromUserName}} |
hasActions |
A boolean value that indicates if an action is configured for a task. | {{hasActions}} |
instanceId |
ID of the process instance in which the task is present. | {{instanceId}} |
logo |
Product logo | {{logo}} |
outcome |
The outcome of the task. | {{outcome}} |
priority |
The priority of the task. | {{priority}} |
payload |
Root element that stores all message start variables. | {{payload}} |
processName |
Name of the process in which the task is present. | {{processName}} |
processVersion |
Version of the process in which the task is present. | {{processVersion}} |
shortSummary |
Summary of the task. | {{shortSummary}} |
state |
The current state of the task like whether it is assigned or completed. | {{state}} |
subState |
The current substate of the task. For example, this variable can indicate if the task is expired. | {{subState}} |
taskId |
The task ID. | {{taskId}} |
title |
Title of the task. | {{title}} |
url |
URL for accessing the task details in runtime. | {{url}} |
updatedBy |
Display name of the user who updated the task. | {{updatedBy}} |
updatedById |
Stores the username of the user who has updated the task. | {{updatedById}} |
updatedDate |
Date on which the task was last updated. | {{updatedDate}} |