Activity Forums Salesforce® Discussions How can I check if a record is locked or not through Salesforce Apex ?

  • Tanu

    Member
    September 26, 2016 at 1:20 pm

    Hi Pranav,

    Yes,You can check the record is locked or not through apex with the help of approval class by using this piece of code

    Approval.isLocked(recordId)

    This method can also accept List<Id>, SObject, or List<SObject>.

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos