You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I would like to know if there is a way to get a specific reject reason from the expression. For example, how would I know if a rule is failed because of invalid country or invalid loyaltyFactor? Also, does it support for ternary operator? Many thanks.
[
{
"WorkflowName": "Discount",
"Rules": [
{
"RuleName": "GiveDiscount10",
"ErrorMessage": "One or more adjust rules failed.",
"Enabled": true,
"Expression": "input1.country == "india" AND input1.loyaltyFactor <= 2 AND input1.totalPurchasesToDate >= 5000 AND input2.totalOrders > 2 AND input3.noOfVisitsPerMonth > 2",
"SuccessEvent": "10"
}
]
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I would like to know if there is a way to get a specific reject reason from the expression. For example, how would I know if a rule is failed because of invalid country or invalid loyaltyFactor? Also, does it support for ternary operator? Many thanks.
[
{
"WorkflowName": "Discount",
"Rules": [
{
"RuleName": "GiveDiscount10",
"ErrorMessage": "One or more adjust rules failed.",
"Enabled": true,
"Expression": "input1.country == "india" AND input1.loyaltyFactor <= 2 AND input1.totalPurchasesToDate >= 5000 AND input2.totalOrders > 2 AND input3.noOfVisitsPerMonth > 2",
"SuccessEvent": "10"
}
]
}
Beta Was this translation helpful? Give feedback.
All reactions