Using variables, functions, and fields
You can insert variables, object fields, system workflow fields, URLs, and application text in email templates and use them in the expression field. The expression field is part of Applicability in workflow properties and Conditions, Validations, and Operations in an action.
Variables
Enter | To insert/use |
---|---|
[$APPLICATION_URL$] |
URL for OpenPages® |
[$COGNOS_URL$] |
URL for IBM® Cognos® Analytics |
[$END_USER$] |
End user identifier |
[$TODAY$] |
Today's date |
[$WORKFLOW_ACTION_USER$] |
User who completed the current action. It is used in the email template to show the user who sent an email notification. |
[$RULE_ASSIGNEES$] |
Users or groups assigned to the rule. It is used in automated workflows. The users or groups that are assigned to the rule are passed to the automated workflow. |
[$RULE_CRITICALITY$] |
Criticality of the rule. It is used in automated workflows. The Criticality of the rule is passed to the automated workflow. Valid values are: low, medium, high, or critical. Values are case-sensitive. |
Functions
Enter | To |
---|---|
trim |
Use the trim function to reduce the length of a string field. For example,
apply in an Object Name field to ensure that the value does not exceed a set limit.
Syntax: [$field group:field
name|trim(length,
replacementChar)$] Function name is case-insensitive. Replacement character is optional. Examples:
|
Fields, URLs, and application text
To insert/use | Use the format |
---|---|
Object fields |
[$field group:field name$]
|
System fields | [$System Fields:field name$] |
A URL to an object task view |
[$System Fields:Task View URL$] |
Workflow field |
[$System Workflow Fields:field name$]
For example: |
Parent, child, preference field | [$Parent:object type/field group:field
name$]
|
Application text content | [$ApplicationText/application text key$]
|
Object type name | [$System Fields:Object Type Label$] |
Registry setting value | [$Setting/OpenPages/....$] |
Day count from today to the stage due date | [$DaysFromNow/System Workflow Fields:Stage Due Date$] |