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
satya ajithsatya ajith 

how to unlock the record due to approval process

Best Answer chosen by satya ajith
bhanu_prakashbhanu_prakash
Hi Satya,
Mark as best answer, If it resloves !!​​
The classes which are being used are LockResult Class and UnlockResult Class. To know more about the lock and unlock classes please go through the link.
https://releasenotes.docs.salesforce.com/en-us/winter16/release-notes/rn_apex_approval_locks_unlocks.htm
Unlock
http://​https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_Approval_UnlockResult.htm#apex_class_Approval_UnlockResult
lock
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_Approval_LockResult.htm

Mark as resloved if it helps :) :)
Thanks, 
Bhanu Prakash
visit ForceLearn.com

All Answers

bhanu_prakashbhanu_prakash
Hi Satya,
Mark as best answer, If it resloves !!​​
The classes which are being used are LockResult Class and UnlockResult Class. To know more about the lock and unlock classes please go through the link.
https://releasenotes.docs.salesforce.com/en-us/winter16/release-notes/rn_apex_approval_locks_unlocks.htm
Unlock
http://​https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_Approval_UnlockResult.htm#apex_class_Approval_UnlockResult
lock
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_Approval_LockResult.htm

Mark as resloved if it helps :) :)
Thanks, 
Bhanu Prakash
visit ForceLearn.com
This was selected as the best answer
bhanu_prakashbhanu_prakash
Thanks Satya, Marking as best answer
Visit us ForceLearn.com