nerdexam
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)
  • A
    7% (4)
  • B
    81% (44)
  • C
    9% (5)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full PDII Practice