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()}returns the name of the user who was selected in the automation stream.{{currentObject}.parent().link()}returns a hyperlink to the parent object.
Variables can be used for the Notification Templates asset (type automation), for Set Attribute automation, and in the urlExpression, the header values and the bodyExpression of the callRestApi action.
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. The exception is {creator}, which is also available in the callRestApi 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. |
{currentRelation} | Alternative name for {relation}. Both identify the same object relation and accept the same selectors. |
{userRelation} | Identifies the user relation that was changed and triggered the automation. |
{creator} | Identifies the user who triggered the automation. In callRestApi expressions it doesn’t exist for a rule started by a schedule trigger, and {creator}.email() fails for a user without an email address. |
Relation variables also resolve for the relationDeleted trigger. The relation itself is already gone
by the time the notification is rendered, so the trigger supplies its details: {relation}.name()
returns the relation type name, and {relation}.targetObject() returns the object the deleted relation
pointed to.
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 for notification templates used with the Send notification action. They are also available in the callRestApi action, where only the .name() selector is supported. In callRestApi expressions, {toWorkflowState} is available only for the single-object workflow state change trigger, not for the bulk variant.
| 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} | Identifies 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.