BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
27 / 1048 · Module 2 — Building a Real Mule Flow← prev⊞ allnext →

2.8Salesforce Upsert

Next box:

Salesforce
    ↓
Upsert

Configuration:

Object Type:
Account

External ID Field Name:
External_Customer_ID__c

Conceptually:

salesforce.accounts.upsert(
    records,
    "External_Customer_ID__c"
);

The Mule XML is approximately:

<salesforce:upsert
    config-ref="Salesforce_Config"
    type="Account"
    externalIdFieldName="External_Customer_ID__c"/>

Don't obsess over memorizing exact XML attributes. Studio generates much of this.

What matters for an interview is that you understand:

type
     ↓
which Salesforce object?

Account


externalIdFieldName
     ↓
how do we identify the existing record?

External_Customer_ID__c