Hi @Hara Sahoo
You correctly identified that the parent record should be linked using the external ID, which is great. However, ADF’s UI doesn’t support mapping lookup fields via external ID directly. That’s why you didn’t see the correct field in the dropdown.
The fix is to use the Advanced Editor in the Mapping tab and define the mapping in JSON format manually,This way, you can specify the relationship using Service_Id__r.Service_Id__c, which tells Salesforce to resolve the parent using the external ID.
Manually define your mapping in JSON like this:
[
{ "sourceName": "First_Name", "targetName": "First_Name__c" },
{ "sourceName": "Last_Name", "targetName": "Last_Name__c" },
{ "sourceName": "Service_ID", "targetName": "Service_Id__r.Service_Id__c" }
]
This approach will allow the child records to be inserted and automatically linked to the correct parent via the external ID without needing internal Salesforce IDs.
I hope this information helps. Please do let us know if you have any further queries.
Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.
Thank you.