Salesforce Certified Omnistudio Developer free question 9 / 10 · Domain 5: Data Mappers
A Data Mapper Load updates Opportunity records, and the developer wants a record to be left unchanged when the stage in the input is null. Which mapping setting does the Help describe?
- Required for Upsert, set on the stage field mapping
- Disabled, set on the stage field mapping
- Lookup, set on the stage field mapping
- Default Value, set to the previous stage on the field mapping
Show the answer and explanation
Answer: A
Why this is correct
Among the optional mapping settings of a Data Mapper Load, Required for Upsert is the one that prevents an object record from being updated if the field is null. Default Value loads a value when the output JSON field is null, Disabled prevents only that field from being loaded, and Lookup writes the result of a query to the output field.
Why the other options are wrong
"Default Value, set to the previous stage on the field mapping" … Default Value is the value that is loaded if the field in the output JSON is null. It would write a value and not leave the record unchanged.
"Disabled, set on the stage field mapping" … Disabled prevents the field from being loaded. The rest of the record is still updated.
"Lookup, set on the stage field mapping" … Lookup uses the field value to query for Salesforce data and writes the result to the output field. It does not prevent an update.
Key points
Required for Upsert: a null field prevents the record from being updated.