Activity Forums Salesforce® Discussions How to use Database.insert() in apex ?

  • Udit

    Member
    January 22, 2020 at 12:50 pm

    Database.insert() gives partial success results. When using this if any error occurs, the remaining records will be inserted/updated.

    Syntax: Database.insert(recordsToinsert, allOrNone)

    allOrNone is optional parameter which specifies the partial success of operation.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos