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
KerryGroup DevKerryGroup Dev 

Set field to last approver possible?

I have an approval process that has multiple approvers that all must approve before the process can continue. As they approve, one at a time, can I do a field update and update a field to the name of the latest approver?

 

I would expect this field to change to each name in turn as they approve.

 

I can make an approval action and create a field update, I am just not sure how to access the approvers name.

 

Any configuration option or APEX solutions out there?

 

Thanks!

Ispita_NavatarIspita_Navatar

Once a record is submitted for approval it is locked hence cannot be edited, I guess you should have another object which stores details of "RecordId"  and the last approver.

You can do so by putting a trigger on object which has the approval process and as it fires populate the custom object with above information.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.