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
LiorGLiorG 

Adding Approval history to Email Template

I have a custom object: Refund Approval Form, that's in a master relationship with Opportunity. I have an approval process connected to it and I'd like the approval requests email alerts to have the approval history in the body. 

 

I think I have to create a VF email template and a controller to query the history with the object ProcessInstance, but I don't know where to start.

 

Thanks