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
Ensure your local list variable is placed as a child of a standard context node.
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.
In the expression set version, add a Calculation step at the point where you want to
persist a value to a context instance.
In the calculation step, assign the standard context tag (LHS) to the local list variable
(RHS).
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.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.