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
b.gonzalezb.gonzalez 

Approver's Comments - Approval Process - Apex Trigger

In order to include approver comments on a Opportunity report, I created a custom field called BU Approver Comments opportunity. I orginally planned to create a field update on the Approval Process. However, I have been told this is not possible and that I would need to write a trigger.

Custom field on opportunity: BU_Approval_Comments__c

I am not sure who to write this trigger? Let me know what you need from me in order to write this trigger.

Beth

 
ManojjenaManojjena
Hi Gonzalez,

I think you have one approval process in Oppotunity . Approval comment is basically stores in ProcessInstanceStep  Object .
ProcessInstanceStep is the child object of ProcessInstance .
You can check the below link to hav esome clear concept on the relationship .

https://www.salesforce.com/developer/docs/api/Content/sforce_api_erd_process.htm

As per my knowldge we can create standrad report with Opportunity and ProcessInstance not more deeper .
To more detail about the approval process you need to built custom VF report .
If you want only comment again if you have more then one step each step you should have one comment ,Do you need only final approval comment let me know I will try to help you out .