When you add a lookup table to an expression set version that is associated with a
context definition, you can map the table’s input variables to list variables from the
definition. With this mapping, you can look up multiple values in the list variable at the same
time and get their corresponding output values.
Required Editions
Available in: Lightning Experience
Available in: Enterprise, Unlimited, and Developer Editions
for clouds that have Business Rules Engine enabled
Note Only users with the Rule Engine Advanced Designer permission set can map lookup table
variables to list variables.
Example Donisha, a rule designer, wants to design an expression set version to calculate the
discounted price on certain items in an apparel catalog. Here’s how she configures the
expression set:
Creates an expression set that’s associated with a context definition that has tags. The
tags store various details related to apparel.
Creates a decision matrix named Apparel_Price to look up the price of an apparel item
based on the item’s size, brand, and fabric.
Adds a lookup table step to the expression set version and selects the decision
matrix.
Adds a calculation step to perform further calculation on the prices retrieved from the
lookup table step.
The matrix column names are imported into the version as the version’s local
resources.
To get
the prices of multiple apparel items from the lookup table simultaneously, Donisha maps the
table’s variables to list variables from the ApparelCatalog context definition that’s
associated with the expression set. She knows that the mapping is successful when the local
variables that are imported from the lookup table are removed from the resources
list.
The calculation step takes the corresponding prices for the inputs from the lookup
table and calculates the revised prices at a discount of 15%. The revised price is written
back to the context definition associated with the Price tag.
To test whether the steps worked as expected, Donisha simulates the expression set
version.
Note To simulate expression set versions that use list variables in the steps,
use the Advanced input mode to enter your inputs in JSON format.
Here’s how Donisha
simultaneously passes two sets of input values for the mapped list variables to the
expression set version.
When the version is simulated, it generates the results for the two sets of
inputs for both the lookup table step and the calculation step.
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.