Salesforce
PDII · Question #406
Which statement should be used to allow some of the records in a list of records to be inserted if others fail to be inserted?
The correct answer is B. Database.insert(records, false). See the full explanation below for the reasoning.
Question
Which statement should be used to allow some of the records in a list of records to be inserted if others fail to be inserted?
Options
- Ainsert (records, false)
- BDatabase.insert(records, false)
- CDatabase.insert(records, true)
- Dinsert records
How the community answered
(54 responses)- A7% (4)
- B76% (41)
- C4% (2)
- D13% (7)
Community Discussion
No community discussion yet for this question.