getRelFldValue
def getRelFldValue = {objId, fldId, externalId, nullDefVal = null ->
xxx
}
If objId, fldId, or externalId is null, returns nullDefVal. Otherwise, returns the value of the specified relationship field of the specified record.
Parameter
Description
Default Value
objId
Full identifier of object from which to get the value of the specified field.
fldId
Full identifier of field from which to get a value.
externalId
External ID of the record from which to get the value of the specified field.
nullDefVal
Default value for null.
null
Example
"svmx_shift_plan":"getRelFldValue
(
'svmx_access_hours',
'svmx_shift_plan',
fields.SVMXC__Working_Hours__c
)"
The code in this example returns the svmx_shift_plan field value of the svmx_access_hours record that has an external ID of SVMXC__Working_Hours__c.
For more information:
Was this helpful?