Activity Forums Salesforce® Discussions What is the use of setSavepoint() method of Database class in Salesforce ?

  • What is the use of setSavepoint() method of Database class in Salesforce ?

    Posted by Kirandeep on May 29, 2020 at 3:05 PM

    What is the use of setSavepoint() method of Database class in Salesforce ?

    Aditya replied 6 years ago 2 Members · 1 Reply
  • 1 Reply
  • Aditya

    Member
    May 29, 2020 at 3:08 PM

    Hi,
    Database. setSavepoint() is used to define a point at which DML operations can be rolled back. If any error occurs during DML Operations, that contains many statements, the application will be rolled back to the most recent save point and the entire transaction will not be aborted.

Log In to reply.