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

Approval process - unlock record for certain role/people

Hi all,

is there a way tos etup a validation rule on locked records (via approval proces), that would allow certain group or users to edit. thank you
NagendraNagendra (Salesforce Developers) 

1.Unlock the record through Apex Code (find your own way to call this Apex Code)
2. Use a flag to indicate if Approval Process is still in Pending state.
3. Use a validation rule based on the flag & PublicGroup/Something to throw an error message if someone tries to edit the record.

For more information please check with below release notes link. Please let us know if this helps.

Kindly mark this as solved if the information was helpful.

@Nagendra, we already have a flag that updates if contract is approved. However, I am not sure I know how to set up teh validation rule itself on the whole record editability. Thanks