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
JoeSpecJoeSpec 

run apex when 'Unlock' button pressed

Is it possible to have a trigger run (or any other way to catch the action) when the 'Unlock' button is clicked?   right now it doesn't actually update the record that is being unlocked, so a trigger doesn't fire.    
 

It doesn't appear I have any control over the display/action of that button or any way to know when it's clicked.

What I'm trying to do is have a field on the object that indicates if the record is locked or not so various other things can happen based on that info.  I'm doing this outside an actuall approval process so have other apex that is used to lock the record.