retailCRM Documentation

Expression language

Supported operators

1. Arithmetic operators

Examples:

order.getTotalSumm() * 0.01 # 1% of order sum

2. Comparison operators

Examples:

order.getStatus().getGroupCode() == "approval" # order status in group "Approval" 
order.getDeliveryCost() <= 500 # delivery cost is less or equally 500 
order.getSource().getThisName() matches "/yandex/" # order, which has "yandex" in the source

3. Logical operators

Examples:

order.getDeliveryCost() < 250 and not changeSet.hasChangedField("status") # delivery cost is less than 250 and order status has not been changed

4. Operators working with arrays

Examples:

changeSet.hasChangedField("status") and changeSet.getNewValue("status").getGroupCode() in ["complete", "cancel"] # order status has been changed for status of group "Complete" or "Cancel"

Available functions

Working with data

Auxiliary functions

Available filters


PrintEditHistory
Page last modified on July 18, 2018, at 11:18 AM