Expression editor examples
Expression example 1: Create an string expression that includes the value of a data field.
Workflow data fields: Customer_Name (string)
Expression to build: "Customer Name is "+Customer_Name
- In the Expression Builder dialog box, type the following in the Expression box:
"Customer Name is "
- From the Operators drop-down box, select +.
- From the Item Picker list, choose Data Fields, then choose Customer_Name.
- Click Insert.
Expression example 2: Use a function in an expression.
Workflow data fields: Customer_ID (integer)
Expression to build: "Customer ID is "+convert(Customer_ID,string)
- On the Expression Builder dialog box, type the following in the Expression box:
"Customer ID is "
- From the Operators list, select +.
- From the Item list, choose Functions.
- Choose String, then choose convert.
- Click Insert.
- In the Expression box, select source_exp.
- From the Item list, choose Data Fields, then select Customer_ID.
- Click Insert.
- In the expression, select type_name, then type string.