Salesforce Certified Omnistudio Consultant free question 9 / 10 · Domain 5: Data Mappers
A Data Mapper Load must update the Contact that has a given email address and create a Contact when none matches. Which mapping setting supports that?
- Lookup on the email field mapping
- Default Value on the email field mapping
- Upsert Key on the email field mapping
- Required for Upsert on the email field mapping
Show the answer and explanation
Answer: C
Why this is correct
The Upsert Key setting marks a field as a key of the Salesforce object being loaded, and the Data Mapper uses its value to decide whether to update an existing record or insert a new one. Marking the email mapping this way gives the update-or-create behavior requested. The other three settings handle null values, queries, or defaults.
Why the other options are wrong
"Required for Upsert on the email field mapping" … Required for Upsert prevents a record from being updated when the field is null. It does not define the matching key.
"Lookup on the email field mapping" … Lookup uses the field value to query Salesforce data and writes the result to an output field. It does not decide between update and insert.
"Default Value on the email field mapping" … A default value is loaded when the field in the output JSON is null. It does not match existing records.
Key points
Mark the matching field with Upsert Key so the Load updates a match and inserts otherwise.