
|
|
You can also select both options.
|
|
Field Name
|
Field Description
|
|---|---|
|
Fields marked with * are mandatory fields.
|
|
|
Location Services Key*
|
Select the location service key from the drop-down list.
|
|
Key Search on Return Order Object*
|
Select the Return Order object key from the drop-down list.
|
|
Location to Return Order Mapping
|
Select the mapping between Location and Return Order from the drop-down list.
|
|
|
The Location Services Key and Key Search on Return Object fields display only the string type fields for the key match.
|
|
Input Parameters
|
Description
|
|---|---|
|
recordId
|
The SFDC record ID of the source record (Return Order in this case). If recordId is not available, provide a unique number (1,2,3 and so on).
|
|
productId
|
The Product ID that needs to be searched in the Location Service Object to get Location.
|
|
productFamily
|
The Product Family that needs to be searched in the Location Service Object to get Location.
|
|
sourceField
|
The field from the Source record (Return Order in this case).
|
|
sourceFieldValue
|
the value for the above field in the source record.
|
|
keyField
|
The field of Location Services objects that needs to be searched on Location Service object for the value provided in sourceFieldValue.
|
[
{
"recordId": "1",
"productId": "",
"productFamily": "",
"sourceField": "ShipmentType",
"sourceFieldValue": "",
"keyField": "FSVMXDEV__ServiceType__c"
},
{
"recordId": "2",
"productId": "",
"productFamily": "",
"sourceField": "ShipmentType",
"sourceFieldValue": "Depot",
"keyField": "FSVMXDEV__ServiceType__c"
},
{
"recordId": "3",
"productId": "01t1k000003bLZzAAM",
"productFamily": "",
"sourceField": "",
"sourceFieldValue": "",
"keyField": ""
},
{
"recordId": "4",
"productId": "",
"productFamily": "Mobile",
"sourceField": "",
"sourceFieldValue": "",
"keyField": ""
},
{
"recordId": "4",
"productId": "01t1k000003PDYoAAO",
"productFamily": "",
"sourceField": "",
"sourceFieldValue": "",
"keyField": ""
}
]
{
"success": true,
"data": [
{
"recordId": "1",
"locationIds": [] //nothing found because the sourceFieldValue was not provided
},
{
"recordId": "2",
"locationIds": [
"1311k00000090suAAA" //matching location found for FSVMXDEV__ServiceType__c = 'Depot' in Location Service object
]
},
{
"recordId": "3",
"locationIds": [] //no matching location found for the given productId in Location Services object
},
{
"recordId": "4",
"locationIds": [] //no matching location found for the given product family in Location Services object
},
{
"recordId": "4",
"locationIds": [
"1311k00000090szAAA" //matching location found for the given product
]
}
]
}