function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How to find if a Record is Locked?



Is there a way in Apex, to find if a Record is Locked?


I am not talking about the ProcessInstance Status here.


I can get the Status = 'Pending' from the ProcessInstance's TargetObjectID.


But it can be possible that the Status is 'Approved' and the record is still locked, waiting for the next in hierarchy to Approve it.


So, how do we find if a Record is Locked?

Message Edited by Suri on 08-11-2009 03:07 PM

I too require the same information.

Could anybody help in this regard.