How can we unlock a record?

Posted by Rollbase User on 28-Jan-2011 21:31

How can we unlock a record for an object using the Lockable attribute? I wasn't able to find an example or a reference in the documentation.

All Replies

Posted by Admin on 28-Jan-2011 21:49

From Chapter 8:
To remove locks on records, you can use a Trigger or the API to set the Is Locked checkbox to false. A new Trigger type called “Unlock” is created when the “Lockable” attribute is set.

Posted by Admin on 29-Jan-2011 12:24

Thanks.
There was a new trigger created. It sets the ckeckbox to false as expected. (The trigger was named "Set Lock" instead of "Unlock".)


In case it could help others, I wrote this small piece of code that I embedded in a Script component in order to easily unlock a specific record.





Invoice ID



This thread is closed