Inside Activate
Activate Expressions
Expressions Examples
6 min
this document provides a collection of activate expression language examples commonly used across web forms, notifications, and workflows these examples serve as a quick reference for frequently asked questions and typical expression patterns display a group member list in a notification as html links, separated by line breaks \=foreach(=/securitygroup/members, '%=weblink()%')% in a web form, check if a job argument list contains more than one item returns true or false \=if(=//job/data/owners/item/count < 2, false, true) retrieve the current user's department name \=/user/roles/departments/0/name evaluate whether two owners in job arguments are different \=eval(=//job/data/owner1 != =//job/data/owner2) add a date interval to the current system time using the group's expiration time \=dateadd(=//system/now, "=/securitygroup/creategrouptype/expirationtime") checks if the current user is not in the "administrators" role \=!isinrole("administrators") checks if the submit user for a job is in the "service desk" system role \=isinrole(=//roles/system roles/service desk, =//job/submituser) format a date as dd/mm/yyyy from a job's connector start date \=format("{0\ dd/mm/yyyy}", =todate(=//job/data/connector/startdate)) format the job's max expiry date as dd/mm/yyyy \=format("{0\ dd/mm/yyyy}", =//job/maxexpirydate) adds 24 hours to the user's expiry time if expiry time is null or unset, uses the current system time instead \=dateadd(h, 24, =if(=/user/expirytime < =todate("1/01/1970 12 00 00 am"), =//system/now, =/user/expirytime)) filter specific users from a directreports collection \=filter('=//currentuser/directreports', '@=>{=/name} != "alison head"') notes paths like =/user/roles/departments or =//job/data refer to elements within the activate data model context functions like isinrole , dateadd , format , and eval are built in activate expression language utilities use \<br> or other html tags within foreach for formatting html based notifications