You are here:
Invoke an Expression Set in a Flow
After an expression set version is activated, invoke the version in a flow to run the rules configured in the expression set and return the outcomes to the flow.
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 create a flow: | Manage Flow |
| To invoke an expression set: | Rules Engine Runtime |
To call expression sets with context definitions from a flow, see How to Use Business Rules Engine to Preapprove Health Cloud Care Requests.
To call an expression set with a Decision Explainer component from a flow, see Example: Create a Flow to Run the Expression Set and Update the Record.
- From Setup, in the Quick Find box, enter Flows, and then select Flows.
- Click New Flow.
- In the New Flow window, select a flow type, and then click Create.
-
Click
, and then select Action.
-
In the New Action window, complete these steps:
-
In the category section, select Expression Sets.
Note The Expression Sets category is available in the New Action window only when your Salesforce org has an expression set with at least one active version. - In the Action search bar, look for, and then select the expression set you want to run.
- Enter a label for the expression set you selected. The API name autopopulates from the label you enter.
- If needed, enter a description.
-
In the Set Input Values section, enter values for the input variables defined in
the expression set.
Input variables from all the active versions of the expression set are shown. Enter values for all the variables. When the expression set runs, variables from only the active expression set version with the highest rank are considered.
Note If the expression set uses a field alias as a variable, pass the Id field of the source object, to which the field alias belongs, as an input variable to the flow. - In the Advanced section, if needed, enable manual assignment of variables. With manual assignment, you can map the expression set output to a new resource that the flow can use.
- Click Done.
-
In the category section, select Expression Sets.
- Use other elements in the flow to decide how the outcomes returned by the decision matrix are stored or processed later.
- Save and activate your flow.
Did this article solve your issue?
Let us know so we can improve!

