Loading
Salesforce now sends email only from verified domains. Read More
Business Rules Engine
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Invoke an Expression Set in a Flow

          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.

          1. From Setup, in the Quick Find box, enter Flows, and then select Flows.
          2. Click New Flow.
          3. In the New Flow window, select a flow type, and then click Create.
          4. Click Add element icon, and then select Action.
          5. In the New Action window, complete these steps:
            1. In the category section, select Expression Sets.
              Note
              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.
            2. In the Action search bar, look for, and then select the expression set you want to run.
            3. Enter a label for the expression set you selected. The API name autopopulates from the label you enter.
            4. If needed, enter a description.
            5. 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
              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.
            6. 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.
            7. Click Done.
          6. Use other elements in the flow to decide how the outcomes returned by the decision matrix are stored or processed later.
          7. Save and activate your flow.
            Note
            Note When a Flow is invoked using Batch management (for example, for processing 200 records), the calls to expression sets are automatically bulkified, which allows the execution of multiple inputs in a single request.
           
          Loading
          Salesforce Help | Article