Address: Job-to-Work Order Transform Templates
Max-to-SFDC Mappings
You can use the arrayIndexVal function to get the elements of the Address array as follows:
"SVMXC__Street__c": "arrayIndexVal(payload.fields.core_address, 2)",
"SVMXC__City__c": "arrayIndexVal(payload.fields.core_address, 3)",
"SVMXC__State__c": "arrayIndexVal(payload.fields.core_address, 4)",
"SVMXC__Zip__c": "arrayIndexVal(payload.fields.core_address, 5)",
"SVMXC__Country__c": "arrayIndexVal(payload.fields.core_address, 6)",
"SVMXC__Latitude__c": "arrayIndexVal(payload.fields.core_address, 7)",
"SVMXC__Longitude__c": "arrayIndexVal(payload.fields.core_address, 8)",
SFDC-to-Max Mappings
You can use the addressFormat function to construct an Address array as follows:
"core_address":"addressFormat (
null,
fields.SVMXC__Street__c,
fields.SVMXC__City__c,
fields.SVMXC__State__c,
fields.SVMXC__Zip__c,
fields.SVMXC__Country__c,
fields.SVMXC__Latitude__c,
fields.SVMXC__Longitude__c)"
For more information: