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

Update not completing due to record lock

I have a deep clone process executing on the opportunity object which writes the resulting new record link to the originating opportunity. The opporutnities are locked after an approval process before being set to closed won and the  clone doesn't happen until after the opportunity is set to won so the process is failing.  


I'm not seeing anything obvious that will allow me to unlock the record, make the update and then relock it - am I missing something or is it not possible? 





At this time you can't lock/unlock a record in apex code.  Please vote up this idea for that functionality.


Shoot - ok. Thanks. 


Found the following two ideas on the topic - both older so not very popular now?