You need to sign in to do that
Don't have an account?

Salesforce SOAP API - Lookup relationship
Hello,
I am working on a mule flow that use a salesforce connector.
My question is that how to define a lookup relationship when using this connector when doing a bulk upsert (job list in Bulk Data Load Jobs)
The salesforce connector is using the https://test.salesforce.com/services/Soap/u/28.0 api.
My problem is that on my object I have a lookup and the upsert is working only if I use for this field the sfObjectId of the lookup object.
I would like to be able to use the externalId of my lookup object instead, but can't find the correct xml expression for it.
I am working on a mule flow that use a salesforce connector.
My question is that how to define a lookup relationship when using this connector when doing a bulk upsert (job list in Bulk Data Load Jobs)
The salesforce connector is using the https://test.salesforce.com/services/Soap/u/28.0 api.
My problem is that on my object I have a lookup and the upsert is working only if I use for this field the sfObjectId of the lookup object.
I would like to be able to use the externalId of my lookup object instead, but can't find the correct xml expression for it.
You need to use upsert if you want to use the externalID and then your xml would look like this
see http://mulesoft.github.io/salesforce-connector/mule/sfdc-config.html#upsert
Inside Datamapper, you need to "Add Metadata Field" and create an Element with the __r object name, and then an attribute of that element with the lookup field name.
I am trying to do similar operation using DataWave, Would it be possible to share more info on how to use Parent__r: Parent_External_ID__c to while loading child records..
Thanks
Pradeep