General Functions

< All Topics

CURRENT_DATETIME

{{ CURRENT_DATETIME }}

{{ CURRENT_DATETIME(dd-MM-yyyy) }}

Outputs the current DateTime as a string. An optional argument can be provided to specify the output format. If no argument is provided the function will generate the DateTime using the ISO format: ‘yyyy-MM-dd hh:mm:ss’


CURRENT_DATETIME_ADDDAYS

{{ CURRENT_DATETIME_ADDDAYS(-3) }}

{{ CURRENT_DATETIME_ADDDAYS(9, dd/MM/yy) }}

Inserts the current DateTime offset by the number of days (integer) given in the first argument. The optional second argument is used to define the output format.


CURRENT_DATETIME_ADDWEEKS

{{ CURRENT_DATETIME_ADDDAYS(-3) }}

{{ CURRENT_DATETIME_ADDDAYS(9, MM-dd-yyyy) }}

Inserts the current DateTime offset by the number of weeks (integer) given in the first argument. The optional second argument is used to define the output format.


CURRENT_DATETIME_ADDMONTHS

{{ CURRENT_DATETIME_ADDDAYS(-3) }}

{{ CURRENT_DATETIME_ADDDAYS(9, dd MMM yy) }}

Inserts the current DateTime offset by the number of months (integer) given in the first argument. The optional second argument is used to define the output format.


CURRENT_DATETIME_ADDYEARS

{{ CURRENT_DATETIME_ADDDAYS(-3) }}

{{ CURRENT_DATETIME_ADDDAYS(9, dd/MM/yyyy) }}

Inserts the current DateTime offset by the number of years (integer) given in the first argument. The optional second argument is used to define the output format.


CURRENT_WEEK

{{ CURRENT_WEEK }}

Inserts the current week number for the year as an integer.


CURRENT_DATETIME_ADDYEARS

{{ CURRENT_QUARTER }}

Inserts the current quarter for the year as an integer.


EMPTY

{{ EMPTY }}

Generates an empty string.


NEW_GUID

{{ NEW_GUID }}

Generates a GUID.


USERNAME

{{ USERNAME }}

Inserts the username of the user who triggered the workflow.


USER_EMAIL

{{ USER_EMAIL }}

Inserts the email address of the user who triggered the workflow.


USER_FIRSTNAME

{{ USER_FIRSTNAME }}

Inserts the first name of the user who triggered the workflow.


USER_LASTNAME

{{ USER_LASTNAME }}

Inserts the last name of the user who triggered the workflow.


USER_FULLNAME

{{ USER_FULLNAME }}

Inserts the full name, First Name, and Last Name, of the user who triggered the workflow.


GROUP_EMAILS

{{ GROUP_EMAILS(group_name) }}

Inserts the email address of all users in the specified group. Each email address is separated by a comma.