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
sfadm sfadmsfadm sfadm 

Unlock programatically opporutnities during approval process

I have an existing workflow and some part of the workflow involves approval process for opportunities. During the approval process Opportunity object is locked. The unlock takes place at the end of the approval process. The lock for Opportunity object can not be removed in administrative way. What I strive to achieve is during the approval process the Opportunity object to be unlocked. There are two apex methods to lock and unlock in the Approval class but I'm not aware where to use those methods and which apex method and apex class exactly is invoked when the approval process is submitted. Please advise which apex method is invoked when the approval process is submitted.
Vasani ParthVasani Parth
You may refer this link ( .It has end to end explanation of the problem.
sfadm sfadmsfadm sfadm
It's quite urgent to find the exact class and I welcome every possible solution to help me find the class.