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
sfuser2010sfuser2010 

Approvals reports

I have a custom object that has Approvals workflow.  How can I create a report with the approval information details?

Imran MohammedImran Mohammed

Currently Approval Info details are not reportable.

But you can do it by creating a separate custom object  and populate with all the details required from the Reporting objects.

sfuser2010sfuser2010

Can you elaborate on that imran?  So after i create a separate object, how do I populate the details from the approvals info?

Imran MohammedImran Mohammed

There are some approval objects like processinstance, steps, processsteps.

You can have a schedulable class that populates the custom approval reporting object.

 

You can query the processinstance object using the id of the custom object, and thereafter you can get more details from processsteps, step objects.

Looks little tricky, but still doable.

 

Hope this helps.

Let me know if you have any queries.

sfuser2010sfuser2010

That does seem tricky.  How do I find out the API names of the approval objects & fields?