A developer needs to create records for the object Property__c. The developer creates the following code block:List propertiesToCreate = helperClass.createProperties();try { // line 3 } catch (Exception exp ) { //exception
handling }Which line of code would the developer insert at line 3 to ensure that at least some records are created, even if a few records have errors and fail to be created?
- Database.insert(propertiesToCreate, false);
- insert propertiesToCreate;
- Database.insert(propertiesToCreate, System.ALLOW_PARTIAL);
- Database.insert(propertiesToCreate);
Reveal Solution Next Question