Activity Forums Salesforce® Discussions How can be lock or unlock a record on a object by a approval process?

  • Prakhar

    Member
    July 20, 2016 at 3:24 pm

    Hii Mohit,

    This is an new feature that is being added in spring 16 release notes of Salesforce, through which you can perform Lock and Unlocking of records using Apex.

    The classes which are being used are LockResult Class and UnlockResult Class. To know more about the lock and unlock classes please go through the link.

  • Shekhar Gadewar

    Member
    July 21, 2016 at 12:51 pm

    Hi Mohit.

     

    You can do that using:

    1.Approval.LockResul

    2.Approval.UnlockResult

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos