Expression Examples
Last updated
Was this helpful?
Last updated
Was this helpful?
Please note that the maximum character limit for Expressions is 500.
Has label
Has item label
Has item label with value
Sum by
Transaction item by
Achievement progressed
{
"operator": "expression",
"data": "agg(transaction.labels).matchLabel('k1')"
}
{
"operator": "expression",
"data": "agg(customer.labels).matchLabel('k1', 'v1')"
}
{
"operator": "expression",
"data": "transaction.itemLabel('k1').qty > 2"
}
{
"operator": "expression",
"data": "transaction.itemLabel('k1', 'v1').qty > 2"
}
{
"operator": "expression",
"data": "agg(transaction.items).sumBy('qty') > 2"
}
{
"operator": "expression",
"data": "transaction.maker('Company').qty > 0
}
{
"operator": "expression",
"data": "transaction.category('C1').qty > 0
}
{
"operator": "expression",
"data": "transaction.sku('AB1122').qty > 0
}
{
"operator": "expression",
"data": "event.body.progressStatuses[0].currentPeriodValue >= 0"
}