Common Examples
Activate expressions are used to retrieve data, perform comparisons, and manipulate dates and strings within Activate products. This article provides common examples and explanations to help you understand how expressions are structured and where they can be applied.
Retrieve user attributes
Use expressions to access properties related to the current user.
Returns the name of the user’s department.
Compare job data values
Expressions can evaluate conditions using job argument data.
Checks whether the two job owners defined in the job data are different.
Date calculations
Activate expressions support date arithmetic and formatting.
Adds a specified expiration time to the current system date.
If the user expiry time is null, the current system date is used instead, and 24 hours are added.
Role membership checks
You can verify whether a user is a member of a specific role.
Checks that the current user is not a member of the Administrators role.
Checks whether the job submit user is a member of the Service Desk system role.
Date formatting
Use the format function to display dates in a specific format.
Formats the connector start date as day, month, and year.
Formats the maximum expiry date using the same date format.