Using Lookup Tables in Rules
Lookup Tables become truly powerful when integrated with other rule types. This section explains how to query Lookup Tables from Decision Tables, Decision Trees, Flows, and Scripting Rules.
Overview
LOOKUP Functions
LOOKUP_VALUE
Syntax
LOOKUP_VALUE(rule-alias, primaryKey, version?, outputColumn?)Parameter
Description
Return Value
Example
product_code (PK)
product_name
price
category
LOOKUP_EXISTS
Syntax
Parameter
Description
Return Value
Example
product_code (PK)
product_name
price
category
Integration with Decision Tables and Trees
Using LOOKUP functions in Conditions and Results
Using Lookup Tables with Valid Values
Setting Up a Lookup Table Reference


Integration with Decision Flows
Integration with Scripting Rules
Best Practices
Use Meaningful Aliases
Consider Performance
Common Patterns
Pattern 1: Product Enrichment
Pattern 2: Tiered Pricing
Pattern 3: Geographic Configuration
Pattern 4: Feature Flags
Last updated
Was this helpful?

