FAQ KB0398983
Email
How do I specify multiple values for a guided buying policy?
Question

How do I specify multiple values, such as commodity codes or localized field values, for a guided buying policy?

Answer

When ORing multiple values for a field in policy configuration, the Operator column should use contains, and the Right hand side Field should use a single pipe character (|) to separate each value.

For example, see the following validation policy file configuration to trigger a policy for multiple commodity code values.

Policy Name Left hand side Type Left hand side Field Right hand side Type Right hand side Field Operator Logical Operator
Commodity policy field LineItems.Amount.Amount constant 1000 > &&
Commodity policy field LineItems.CommodityExportMapEntry constant Project != &&
Commodity policy field LineItems.Description.CommonCommodityCode.UniqueName constant 4412|4414|6610|8820 contains  

In this example configuration the Commodity policy will trigger when all the following are true:

If you're using a Boolean field (has a value of true or false) in your policy configuration, be sure to specify all the localized display values for this field.

For a Yes Boolean field value:

Policy Name Left hand side Type Left hand side Field Right hand side Type Right hand side Field Operator Logical Operator
Non-catalog policy field TotalCost.ApproxAmountInBaseCurrency constant 5000 < &&
Non-catalog policy field LineItems.IsAdHoc constant true|Yes|نعم|Да|Ano|Ja|Ναι|Sí|Kyllä|Oui|Da|Igen|Sì|כן|はい|예|Tak|Sim|Evet|是 contains  

For a No Boolean field value:

Policy Name Left hand side Type Left hand side Field Right hand side Type Right hand side Field Operator Logical Operator
Non-catalog policy field TotalCost.ApproxAmountInBaseCurrency constant 5000 < &&
Non-catalog policy field LineItems.IsAdHoc constant false|No|لا|Не|Ne|Nej|Nein|Όχι|Ei|Non|Nem|לא|いいえ|아니요|Nee|Nei|Nie|Não|Nu|Нет|Hayır|否 contains  

Any text field that has localized values will need to be handled in a similar way with the contains operator, with the localized values depending on what values you have configured for the field in your customerResources.csv file for each locale.


Applies To

Guided Buying > Guided Buying Administration > Policies

Terms of Use  |  Copyright  |  Security Disclosure  |  Privacy