Upserting Salesforce data based on external IDs
Here is an example of using Talend components to insert and update Salesforce Contact object data based on the mapping
relationship with external IDs of the Account object.
The Job used in this example is composed of the following seven subJobs:
-
the first subJob opens a connection to Salesforce,
-
the second subJob deletes some Account records based on external IDs,
-
the third subJob inserts two Account records with external IDs,
-
the fourth subJob inserts three Contact records based on the mapping relationship with the Account object external IDs, and gathers both inserted and erroneous data,
-
the fifth subJob updates two inserted Contact records based on the mapping relationship with the Account object external IDs,
-
the sixth subJob retrieves the inserted Accout records, and
-
the seventh subJob retrieves the upserted Contact records.