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

Table 1. 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

Table 2. 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:

[$RCM-TRRI-RegEv:Title|trim(200,...)$]
Trims to first 200 characters of the field, replaces remaining additional characters with '...'.
[$RCM-TRRI-RegEv:Title|trim(200,)$]
Trims to first 200 characters of the field.

Fields, URLs, and application text

Table 3. 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: [$System Workflow Fields:Action Label$]

Parent, child, preference field [$Parent:object type/field group:field name$]

[$Child:object type/field group:field name$]

[$Preference/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$]