Activity Forums Salesforce® Discussions Difference between database methods and DML statements in Salesforce?

  • Difference between database methods and DML statements in Salesforce?

    Posted by Mansi Tyagi on March 10, 2021 at 3:49 PM

    Difference between database methods and DML statements in Salesforce?

    kishan replied 5 years ago 2 Members · 1 Reply
  • 1 Reply
  • kishan

    Member
    March 11, 2021 at 10:51 AM

    The main difference is :-
    DML statements - when an exception is thrown during bulk DML processing, processing stops immediately and jumps to your catch block.
    DML database methods - allows partial success of bulk DML operations. Records that fail processing can be inspected and possibly resubmitted if necessary.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos