Salesforce
PDII · Question #31
A company has a custom object, Order__c, that has a required, unique, external ID field called Order_Number__c. Which statement should be used to perform the DML necessary to insert new records and…
The correct answer is B. upsert orders Order_Number__c. See the full explanation below for the reasoning.
Question
A company has a custom object, Order__c, that has a required, unique, external ID field called Order_Number__c. Which statement should be used to perform the DML necessary to insert new records and update existing records in a List of Order__c records?
Options
- Aupsert orders;
- Bupsert orders Order_Number__c;
- Cmerge orders Order_Number__c;
- Dmerge orders;
How the community answered
(54 responses)- A7% (4)
- B81% (44)
- C9% (5)
- D2% (1)
Community Discussion
No community discussion yet for this question.