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 That Uses Decision Explainer from a Flow

          Invoke an Expression Set That Uses Decision Explainer from a Flow

          After an expression set version that has decision explanations enabled is activated, call the expression set that the version belongs to from a flow. To capture action logs for the expression set runs, specify values for the autogenerated __actionContextCode and __specName parameters in 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 explainability message templates, explainability action definitions, and explainability action versions: Decision Explainer Service Access
          To enable Decision Explainer for an expression set version: Rule Engine Designer
          To invoke an expression set from Flow Manage Flows

          To enable Decision Explainer for an expression set and add explainability message templates to a version, your Salesforce instance must have Decision Explainer enabled.

          1. From Setup, in the Quick Find box, enter Flows, and then select Flows.
          2. Click New Flow.
          3. Select a flow type, and then click Create.
          4. Click Add element icon, and then select Action.
          5. In the Action search bar, search for, and select the expression set you want to run.
          6. Enter a label for the expression set. The API name autopopulates from the label you enter.
          7. If needed, enter a description.
          8. Set input values for the expression set:
            1. Include __actionContextCode and select the variable that captures the record ID of the object for which the expression set is run.
            2. Include __explainabilitySpecName and enter the name of the explainability action definition that defines the purpose for which the expression set is run.
              Important
              Important Ensure that the explainability action definition you specify has an associated, active explainability action version.
            3. If needed, include other variables from the expression set and set their values.
            Expression set action configuration in a flow.

            Here, {!contactRecord.Id} is the local flow variable to capture the record ID of the contact for whom this flow is run. Example is the explainability action definition, and {ApplicantBirthdate} is the local flow variable that captures the user’s input.

          9. Save your changes.
          10. To verify that the flow works as expected, run or debug the flow using sample values.
            .

            Debug flow results for sample inputs.

            Here, the flow passes the contact record’s birthdate to the expression set, which uses the date to calculate the age. The expression set is configured to have $10,000 as the course fees. Based on the calculated age, the expression set returns the discounted fees of $7,000 to the flow.

          11. Go to the record detail page of the object for which you entered the record ID in the __actionContextCode field.
            Important
            Important To see the decision explainer action logs, the record detail page of the object used as the actionContextCode must have the Decision Explainer Log History component added to the object’s record page
            .

            Here’s the record detail page of the sample contact specified while debugging the flow. The Decision Explainer Log History section captures each run of the expression set.

            Decision explainer action logs for the selected actionContextCode.

          12. To view step-wise details and output of the expression set version called from the flow, select a specific run, and click View.
           
          Loading
          Salesforce Help | Article