You need to sign in to do that
Don't have an account?
How to fetch actual approver for each step of the approval process from approval history
We have a custom object Price Reuqest and have complex approval processes defined for it. We want to capture the Actual Approver for each step of the approval process. I checked forums about using ProcessInstanceHistory and ProcessInstanceWorkItem but i do not understand where to start from. Any help or code or steps on how to accomplish this will be helpful.
SELECT Id, (SELECT Id,TargetObjectId , StepStatus,Actorid, Comments FROM StepsAndWorkitems where StepStatus = 'Pending')
FROM ProcessInstance
Regards,
Rajesh