Loading
Salesforce now sends email only from verified domains. Read More
Help Agent Performance DegradationRead 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
          Call an Expression Set from an Omniscript

          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.

          1. From the App Launcher (App launcher icon.), find and select Omnistudio.
          2. From the app navigation menu, select Omniscripts.
          3. Select the Omniscript and the version from which you want to call the expression set.
          4. Expand the step from which you want to call the expression set.
          5. 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
            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.
          6. From the Build section, under Actions, drag Expression Set Action and place it below the input fields.
          7. Select the action, and then under the Properties section:
            1. Enter a name, and if necessary, a label for the action.
            2. Expand Remote Properties.
            3. For Configuration Name, enter the name of the expression set that you want to call.
            4. Expand Send/Response Transformations.
            5. For Send JSON Path, enter the name of the step to which you added the input fields.
              Tip
              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.
            6. 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.

          8. To test whether the Omniscript calls the expression set successfully, click Preview.
          9. Enter values for the input fields in the relevant Omniscript step, and then run the Omniscript.
            Omniscript preview screen.
          10. 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.
            Omniscript action debugger

            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.

           
          Loading
          Salesforce Help | Article