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
softcloud2009softcloud2009 

How to change the actorId on approval process during escalation

Hi All,

 

We are implemented an approval process and allow for escalation if current approver didn't response in certain hours.

I already checked the allowed administrator or current approver to edit the field, however, when my apex trigger try to change the actor id to the next approver, it error out.

 

When I change the permission to allow modify all for that object, it work just fine, but then it will break the whole idea of approval, because everybody can go in and approve or reject that approval request.

 

Any idea....