Activity Forums Salesforce® Discussions When to use rollback(databaseSavepoint) method of database class in Salesforce ?

  • When to use rollback(databaseSavepoint) method of database class in Salesforce ?

    Posted by Kirandeep on September 8, 2020 at 2:36 pm

    When to use rollback(databaseSavepoint) method of database class in Salesforce ?

    Manish replied 4 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Manish

    Member
    September 8, 2020 at 3:18 pm

    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.

Popular Salesforce Blogs

Popular Salesforce Videos