Loading
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
          Persist Local List Variable Values to a Context Instance

          Persist Local List Variable Values to a Context Instance

          Local list variables store temporary values in an expression set version that do not automatically pass back to a context instance. However, you can write these values back to the context instance by creating an explicit assignment to a standard context tag.

          Required Editions

          • The expression set must be associated with an active context definition.

          • The local list variable and the target context tag must have matching data types.

          Available in: Lightning Experience
          Available in: Enterprise, Unlimited, and Developer Editions for clouds that have Business Rules Engine enabled
          User Permissions Needed
          To create an expression set that uses a context definition: Rule Engine
          To use the definition’s tags as local list variables in the expression set’s version steps: Rule Engine
          1. Ensure your local list variable is placed as a child of a standard context node.
          2. Identify a sibling context tag to be used for writing the value back to the context instance.

            Use an existing standard context attribute (context tag) that is a sibling to the local list variable under the same parent node.

          3. In the expression set version, add a Calculation step at the point where you want to persist a value to a context instance.
          4. In the calculation step, assign the standard context tag (LHS) to the local list variable (RHS).
            Example: Context_Tag_Attribute = My_Local_List_Variable

          During runtime, the value of the local list variable is assigned to the context tag.

          Once execution is complete, these values are written back to the context instance for that specific node and attribute.

           
          Loading
          Salesforce Help | Article