You are here:
Call an Expression Set from an Omniscript
To call an expression set that has at least one active version from an Omniscript, and to return the specified expression set’s results to the Omniscript, use the Expression Set Action.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions for clouds that have Business Rules Engine enabled |
| User Permissions Needed | |
|---|---|
| To access Omnistudio to create and modify an Omniscript: | Omnistudio Admin |
| To access Business Rules Engine to create and activate an expression set: | Rules Engine Designer |
| To call an expression set from an Omniscript: | Omnistudio Admin |
To call expression sets that use Decision Explainer, define actionContextCode and explainabilitySpecName as keys in the Omniscript under Expression Set Action Properties.
-
From the App Launcher (
), find and select Omnistudio.
- From the app navigation menu, select Omniscripts.
- Select the Omniscript and the version from which you want to call the expression set.
- Expand the step from which you want to call the expression set.
-
From the Build section, under Inputs, drag the input fields that are relevant to the
inputs that your expression set uses.
For example, if the expression set that you call uses values from the input variables AnnualFees, Age, and GPA to calculate the discounted student fees, add these input fields:
Input Field Type FIELD Name Number Age Number GPA Currency Fees
Note Ensure that the input field name matches the name of the input variable that’s used in the expression set. You can specify field labels of your choice. - From the Build section, under Actions, drag Expression Set Action and place it below the input fields.
-
Select the action, and then under the Properties section:
- Enter a name, and if necessary, a label for the action.
- Expand Remote Properties.
- For Configuration Name, enter the name of the expression set that you want to call.
- Expand Send/Response Transformations.
- For Send JSON Path, enter the name of the step to which you added the input fields.
Tip Specifying the step name that contains the input field ensures that information from the step is passed to the expression set only, rather than to the entire Omniscript JSON. - For Send JSON node, enter a name that you want to specify as the root node name in
the outgoing response.
For example, my_input.
- To test whether the Omniscript calls the expression set successfully, click Preview.
-
Enter values for the input fields in the relevant Omniscript step, and then run the
Omniscript.
-
To view the results of the expression set action, expand the step that contains the
input fields and the expression set action, and then under Action Debugger, expand
Response.
Here, ID represents the Send JSON node that you specified, and DiscountedFees represents the output variable defined in the expression set that the Omniscript called.
Did this article solve your issue?
Let us know so we can improve!

