Create Lookup Table
create_lookup_tableCreate a SAS Intelligent Decisioning lookup table that maps unique keys to stored values, optionally publishing it for rules to use immediately.
Instructions
Create a SAS Intelligent Decisioning lookup table: keys and the value stored for each.
A rule uses it with a condition {"type": "lookup", "term": {...}, "lookup": "<name or ID>"} (is the variable's value a key?) or an action
{"type": "lookupValue", "term": {...}, "expression": "<key expression>", "lookup": "<name or ID>"} (assign the key's value).
Rules only see an active version. With activate the table is
published to MAS and CAS right away (usually seconds); otherwise call
activate_lookup_table once the entries are final.
Keys are text up to 256 characters, values up to 512; numbers are stored as text. Keys must be unique and values not empty — an empty value behaves like a missing key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Lookup table name. | |
| folder | No | Where to store it: a folder path, ``My Folder``, a folder ID or URI. Omit to use the default folder; if there is none, ask the user. | |
| entries | Yes | ``{"Iran": "High", "Cuba": "High"}``, or a list of ``{"key", "value"}`` objects or ``[key, value]`` pairs. | |
| activate | No | Publish the first version right away (default false). | |
| key_label | No | Optional name of the key column, e.g. "Country". | |
| description | No | Optional description. | |
| value_label | No | Optional name of the value column, e.g. "Risk level". | |
| wait_seconds | No | How long to wait for activation to finish (max 300). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||