def mappingSingleStatus = {status, mappingHashArray, nullDefVal = null ->
xxx
}
mappingHash.Status == status
"svmx_status": "mappingSingleStatus(SVMXC__Order_Status__c, [
[\"Status\": \"New\", \"MappedStatus\":\"New\"],
[\"Status\": \"Assigned\",\"MappedStatus\":\"Dispatched\"]], \"default status\")"
|
Original Fields
|
Transformed Fields
|
||
|---|---|---|---|
|
Name
|
Value
|
Name
|
Value
|
|
SVMXC__Order_Status__c
|
Assigned
|
svmx_status
|
Dispatched
|
|
Does not meet condition
|
Default value specified in function
|
||
|
|
If SVMXC__Order_Status__c does not meet the condition specified in mappingSingleStatus, the returned value of svmx_status is the default status value specified in the function.
|