Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Report on approvers for REQ and all RITMs attached

Daniel Peel
Mega Sage

I'm looking for a way to pull a report that shows an REQ's approver and any RITM approvers related to it.  Columns I'd need are 

REQ, RITM, REQ Approver RITM Approver Requested for

I know req would be duplicated... any ideas?

I tried from sysapproval_approver and I can get one or the other but not both.

 

Thanks

1 ACCEPTED SOLUTION

kevinray
Giga Expert

Hi Daniel,

I just came across your post. This should work for you

- Create a new Database View

   - Name: Approvals_With_Detail

   - Label: Approvals With Detail

   - Plural: Approvals With Details

[Insert & Stay]

- Click "New" On View Tables related list which now appears at the bottom

   1) TABLE: sc_req_item, ORDER: 100; VARIABLE PREFIX: ritm; WHERE CLAUSE: [leave blank]

   2) TABLE: sc_cat_item, ORDER: 200; VARIABLE PREFIX: cat; WHERE CLAUSE: ritm_cat_item=cat_sys_id

   3) TABLE: sysapproval_approver, ORDER: 300; VARIABLE PREFIX: appr; WHERE CLAUSE: appr_sysapproval=ritm_sys_id

Use this view in a report and you should now have available to you all the fields from the request item, the catalog item, the approval, and fields from the Request (Using "Parent+" option on your fields) should be available to you.

 

View solution in original post

15 REPLIES 15

SanjivMeher
Mega Patron
Mega Patron

You can build a report on sysapproval_approver table.

 

Filter should be Source Table = Request OR Source Table = Requested Item.

 


Please mark this response as correct or helpful if it assisted you with your question.

Daniel Peel
Mega Sage

This doesn't work for what I'm looking for... 

I need to have a report that shows something like this...

but adding to this... who approved the REQ as well.  

find_real_file.png

 

this is the column setup I've used.

find_real_file.png

 

and the filter.. I can't get that other piece of data 

find_real_file.png

Something like this? Can you post the complete report with the fields and filter

 

find_real_file.png


Please mark this response as correct or helpful if it assisted you with your question.

Daniel Peel
Mega Sage

I have posted that... above... the new UI doesn't show all that in a single view.  You are missing who approved the REQ... you are only listing the approver for the RITM.  I need both approvals.