- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 12:01 PM
Hi all,
I am trying to query all open requests for a particular item, where approval has been requested but there has been no action (approve or reject), and I need to get the name of the person that is waiting to approve/reject the request. I can filter the Requested Items table but I do not see how to get the approver (seems this is calculated in the RITM form but not on the table or any related lists).
Is there any way to pull this data? I want to send out notices to the folks who have not yet taken any approval action on these RITM's so that we can clean up some old requests.
Thanks,
Ken
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 09:44 PM
You need to dot-walk. Approval For >> Task fields and then locate the options as suggested in above screen

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 12:13 PM
Hi Ken,
You need to report on the Approver (sysapproval_approver) table and then dot-walk as below.
This will help you get fields from RITM table and also the Approval status from Approval table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 01:07 PM
Hi Jaspal,
Thanks for your reply. Can this be done in a query? When I try to query the sysapproval_approver table, I do not get the related fields from the RITM.
Thanks,
Ken

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 09:44 PM
You need to dot-walk. Approval For >> Task fields and then locate the options as suggested in above screen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 12:16 PM
Hi @Ken Berger ,
You can directly query the Approver (sysapproval_approver) table & get the data (approver's) name & send them a reminder asking them to take action. U can write a fix or scheduled script for this.
var gr = new GlideRecord('sysapproval_approver');
gr.addEncodedQuery('state=requested^approver!=NULL^sysapproval.numberSTARTSWITHRITM');
gr.query();
while(gr.next()){
gs.eventQueue('send.reminder',gr,gr.approver);
}
Create a Notification on Approver table which triggers when event is fired & check on sysparm event 1 checkbox under whom to send.
Thanks,
Danish