Which line of code would the developer insert at line 3 to ensure - ProProfs Discuss
Topics
Products
Follow Us:

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? 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 }



A. Database.insert(propertiesToCreate, false);
B. insert propertiesToCreate;
C. Database.insert(propertiesToCreate, System.ALLOW_PARTIAL);
D. Database.insert(propertiesToCreate);

This question is part of Salesforce Platform Developer 1
Asked by Wyatt Williams, Last updated: Jan 13, 2020

+ Answer
Request

1 Answer

Wyatt Williams

Wyatt Williams

Answered Jan 17, 2018

Database.insert(propertiesToCreate, false);

####
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.