Activity Forums Salesforce® Discussions Database.insert(list,false) vs Database.insert(list)

  • Surbhi

    Member
    May 27, 2016 at 5:19 pm

    Hi Ajay,

    I can explain this with an example:

    Suppose if you are inserting 5 records. 3 of them have all the required field's values and remaining 2 records missing required field's values.

    In Salesforce, if you use Database.insert(list), it will thrown an exception and it will not insert any one of the records. But if you use Database.insert(list, false), it will insert 3 records successfully and rest 2 records(required fields missing) will not be inserted.

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Free 5 Day Salesforce Challenge!

Video in

To access the signup form head over to www.talentstacker.com/Salesforce TalentStacker Podcast Salesforce Episode: https://talentstacker.libsyn.com/how-to-earn-60k-100k-a-year-within-6-months-without-a-college-degree-say-what-salesforce-career-development-path-with-bradley-rice Do you already have a job as a Salesforce Professional and…