SK SKYVVA Documentation

11. Upsert Auto External Id, Update Auto External Id and Delete Auto External Id

This unit describes:-

Why we need Upsert Auto External ID, Update Auto External ID, and Delete Auto External ID?

We are providing the “AUTO” operation to handle the problem that our customers faced. The issue was we were not able to handle the mixed key(mix key means if in the account record customer provides the external Id but also the Salesforce Id)value because the user needs to specify an operation for an interface e.g. UPSERT and he needs to check the box "Ext Id" in the mapping. If no external Id was provided, we run into an error. The solution for him was that he has to split the interface into two interfaces and provide the data clearly but not a mixed-mode. One data provider only Salesforce Id and thus sets the operation to UPDATE. The other data provide only external Id and thus set the operation to UPSERT. But if we could handle this automatically from our side, the customer would not need to split the interface and not needed to create two interfaces. So here we have a solution, the new implementation is about the combination of “External Id” and “Salesforce Id”. New operation Upsert/Update/Delete Auto Id creates or updates the record based on Salesforce id or external fields are specified on the interface. This would improve the performance because an update with a dedicated key is faster than upsert where a search has to be performed first to find the record. But if a Salesforce Id is provided directly there is no search needed. Salesforce Id is always a single field e.g. the Salesforce Id whereas the external Id could be 1 or more than one.

Upsert Auto External ID

The procedure is given below:- Create Integration:-

Create Interface:-

-Id: if salesforce id is specified in data payload then update the record based on its value. -External fields: ERP_DEBTOR_ID__c, ERP_DEBTOR_ID2__c is setting as on interface. If salesforce Id is not specified or blank, then Account will upsert based on ERP_DEBTOR_ID__c AND ERP_DEBTOR_ID2__c. ERP_DEBTOR_ID2__c

We have so many cases to use Upsert Auto External ID:-

payload.

Delete Auto External ID

UpdateAuto External

Open this article in the interactive viewer →