getRelationshipId
def getRelationshipId = {val ->
xxx
}
If val is null, returns external-. Otherwise, returns external-<val.Id>.
Example
"svmx_preferred_technician": "getRelationshipId(SVMXC__Preferred_Technician__r)"
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_preferred_technician
external-a1a7F000000Qna6QAC
For more information:
ifelse
Was this helpful?