Adding a Named List to a Rule
A Named List can be used in a rule when you want the rule to check whether a value is included in a predefined list.
Before You Start
Make sure:
- the Named List already exists
- the Named List already contains the values you need
- you know which rule you want to update
Steps
- Log in to PayControl and open Decision Engine.
- Open the rule you want to update.
- In the Conditions section, click + Condition if you need to add a new condition.
- In the first dropdown, select the field you want the rule to check.
Example: merchant.categoryCode or merchant.country - In the second dropdown, select the operator.
Example: in or notIn - In the next dropdown, change the value type to named list.
This is important:- do not leave it as a normal
- value do not choose a user adjustable value
- choose named list
- In the value dropdown that appears, select the Named List you want to use.
- Save the rule.
What This Looks Like In The Builder
You are building the condition in this order:
- Field
- Operator
- Value type = named list
- Named List name
Example
If you want to check whether the merchant category code is in your blocked-mccs list:
- Select field: merchant.categoryCode
- Select operator: in
- Select value type: named list
- Select named list: blocked-mccs
Another Example
If you want to check whether the merchant country is not in your restricted-countries list:
- Select field: merchant.country
- Select operator: notIn
- Select value type: named list
- Select named list: restricted-countries
Important Notes
- The named list option only appears when the selected operator supports Named Lists.
- The Named List must already exist before you can select it.
- If there are no available Named Lists, the value dropdown will not contain any.
Updated 19 days ago
Did this page help you?