convertToInt
def convertToInt = {val, nullDefVal = null->
if (val == null) {
return nullDefVal
} else {
return val.toInteger()
}
}
If val is null, returns nullDefVal. Otherwise, transforms the value into an integer and returns it.
Example
"svmx_level": "convertToInt(SVMXC__Skill_Level__c)",
Sample Transform
Original Fields
Transformed Fields
Name
Value
Name
Value
SVMXC__Skill_Level__c
2
svmx_level
2
For more information:
concat
escape
ifelse
Was this helpful?