arrayIndexVal
def arrayIndexVal = {array, index, nullDefVal = null ->
xxx
}
Returns a value at the specified index of an array.
Example
"SVMXC__Country__c": "arrayIndexVal(payload.fields.core_address, 5)"
Sample Transform
Original Fields
Transformed Fields
Name
Value
Name
Value
core_address
["2590 Mission College Blvd., Santa Clara, CA 95054, United States", ,
"2590 Mission College Blvd.","Santa Clara","CA","95054","United States", "37.3892724","-121.9711021"]
SVMXC__Country__c
United States
For more information:
Was this helpful?