Skip to main content
Anand Livetext Prasad (Test) a posé une question dans #Apex
Hi 

I would like to know backend impact, if we use database.Insert(contactList) on account creation.

How the partial DML work in bulk load of Accounts into the system.?

Any explaination appriciated. 
1 réponse
  1. 16 févr. 2017, 06:38
    Hello,

    The database below is the explanation.

    If you use Database.insert(ContactList, false);  partial DML it means if you are processing records in bulks using data loader or any other tool. It will allow inserting all those records which are correct or do not have any error and will not allow inserting those records those have any error like required field missing, invalid cross reference id etc.

     

    Means, it allows to insert partial DML.

     

    Below is a link for your reference:

     

    https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_dml_database_error.htm

    Let us know if this helps :)

    ThankThanks
0/9000