getPropertyValue
def getPropertyValue = {val, property, nullDefVal = null->
xxx
}
Get property of val. If val is null, returns nullDefVal.
Example
"svmx_name": "getPropertyValue(SVMXC__Preferred_Technician__r,'Name')"
Sample Transform
Original Fields
Transformed Fields
Name
Value
Name
Value
SVMXC__Preferred_Technician__r
{
"attributes" : {
"type" : "SVMXC__Service_Group_Members__c",
"url" : "/services/data/v41.0/sobjects/SVMXC__Service_Group_Members__c/a1a7F000000Qna6QAC"
},
"Id" : "a1a7F000000Qna6QAC",
"Name" : "testName"
}
svmx_name
testName
For more information:
ifelse
Was this helpful?