This article is for Cloud. Visit Data Center
Expr Language - Chained Function Calls
The chained notation allows you to easily apply a sequence of functions to a value, simply by listing each function one after the other, separated by a ( . ) dot.
Standard notation:Â
F3(F2(F1(x)))
Chain notation:Â
x.F1().F2().F3()
When you use the chain notation, the value that comes before the dot becomes the first argument for the function. If the function takes multiple arguments, the rest of the arguments must be written in parentheses.
For example:
created.FORMAT_DATETIME("yyyy").CONCAT(" year issue")
In this example, FORMAT_DATETIME takes the date value in "created" and formats it based on the argument in parenthesis ("yyyy"). CONCAT takes the result from FORMAT_DATETIME and joins it with " year issue".