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

  1. Log in to PayControl and open Decision Engine.
  2. Open the rule you want to update.
  3. In the Conditions section, click + Condition if you need to add a new condition.
  4. In the first dropdown, select the field you want the rule to check.
    Example: merchant.categoryCode or merchant.country
  5. In the second dropdown, select the operator.
    Example: in or notIn
  6. 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
  7. In the value dropdown that appears, select the Named List you want to use.
  8. Save the rule.

What This Looks Like In The Builder

You are building the condition in this order:

  1. Field
  2. Operator
  3. Value type = named list
  4. Named List name

Example

If you want to check whether the merchant category code is in your blocked-mccs list:

  1. Select field: merchant.categoryCode
  2. Select operator: in
  3. Select value type: named list
  4. Select named list: blocked-mccs

Another Example

If you want to check whether the merchant country is not in your restricted-countries list:

  1. Select field: merchant.country
  2. Select operator: notIn
  3. Select value type: named list
  4. 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.

Did this page help you?