Context variables identify the source of the data. Most of these variables must be paired with a selector to define what value to retrieve. Examples:
{{currentUser}.name()}will return the name of the user who was selected in the automation stream.{{currentObject}.parent().link()}will return a hyperlink to the parent object.
Variables can be used for the Notification Templates asset (type automation) and Set Attribute automation.
Date
| Variable | Description |
|---|---|
{currentUtcDate} | Identifies and displays current date in ISO 8601 format (e.g., 202x-01-01). This variable can be used on its own or with Time Functions. |
{currentUtcDateTime} | Identifies and displays current date and time in ISO 8601 format(e.g., 202x-01-01 12:15:30). This variable can be used on its own or with Time Functions. |
Object
| Variable | Description |
|---|---|
{currentObject} | Identifies the current object’s ID. |
{currentOrigin} | Identifies the ID of the object that triggered the automation. Useful when streams select objects other than the trigger. Ensure the keepOrigin property in Select streams is enabled. |
Object variables can be paired with reference selectors to identify a related object or user.
Relations
Relations-related variables are intended only for notification templates used with the Send notification action.
| Variable | Description |
|---|---|
{relation} | Identifies the object relation that triggered the automation. This variable can be paired with reference selectors to identify a related object or user. |
{userRelation} | Identifies the user relation that was changed and triggered the automation. |
{creator} | Identifies the user who triggered the automation. |
User
| Variable | Description |
|---|---|
{currentUser} | Identifies the user selected in the automation stream. |
{currentUserOrigin} | Identifies the ID of the user who was assigned to the object or removed from it, triggering the automation. Useful when the user relation change triggered the automation. Ensure the keepOrigin property in Select streams is enabled. |
Workflow state
Workflow state variables are intended only for notification templates used with the Send notification action.
| Variable | Description |
|---|---|
{fromWorkflowState} | Identifies the starting workflow state. |
{toWorkflowState} | Identifies the ending workflow state. |
Other
| Variable | Description |
|---|---|
{comment} | Identifies the comment that triggered the automation. This variable is intended only for notification templates used with the Send notification action. |
{constantIdPool.enum_key} | I dentifies a specific pool of IDs. Each execution of the action generates a growing numeric sequence for that key. You can define any enum_key. |
Do not use __CONCEPT_{number} pattern in your ID pool. This pattern is reserved for object concepts, and using it elsewhere may cause concept numbering to stop working correctly.”