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
mikumiku 

How to get the approval process status for a record?

I want to get the approval process status of a approvaling process.So If the the status is pendding,I can email to notify the approver.Are there any way to achieve this ?

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
mikumiku

I think I should search the ProcessInstance to check the staus first . If the status is pendding I should query the ProcessInstanceWorkItem to get the working step and find the actors.