Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Question 46 of 83
Free Preview · 83 of 275 · questions 1–83 of 275 are free. Sign up free to sync your progress across devices.
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
If you don't specify the external Id Order_Number__c as the matching field, many records may be inserted with the same Order_Number__c (but different Salesforce Ids), introducing duplicates
B is de correct answer. https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_dml_section.htm?q=upsert
Correct answer is B. This next example performs an upsert of a list of accounts using a foreign key for matching existing records, if any. List<Account> acctList = new List<Account>(); // Fill the accounts list with some accounts try { // Upsert using an external ID field upsert acctList myExtIDField__c; } catch (DmlException e) { ... }