- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2023 06:05 PM
Is there a way to run a report or any way to get a list of all users that are receiving a scheduled report?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2023 11:44 PM
Hi @MStritt ,
To get a list of users who receive reports, type sysauto_report.list in navigator and bring users field to list view.
Then Right click on any column and export excel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2023 07:35 PM
HI @MStritt ,
I trust you are doing great.
To retrieve the list of users receiving a scheduled report, you can follow these steps:
- Navigate to the "Reports" module in ServiceNow.
- Locate and open the scheduled report for which you want to view the recipients.
- Within the report configuration, there should be a section related to "Recipients" or "Distribution List."
- In that section, you should find a list of users or groups who are set to receive the scheduled report.
- Take note of the users or groups mentioned in the recipient list.
// Assuming you have the sys_id of the scheduled report
var scheduledReportSysID = 'INSERT_SCHEDULED_REPORT_SYS_ID_HERE';
// Query the sys_report_recipient table to retrieve the recipients
var recipientGR = new GlideRecord('sys_report_recipient');
recipientGR.addQuery('report', scheduledReportSysID);
recipientGR.query();
// Iterate through the recipients and print their details
while (recipientGR.next()) {
var recipientUser = recipientGR.getValue('user');
var recipientGroup = recipientGR.getValue('group');
if (recipientUser)
gs.print('User recipient: ' + recipientUser.getDisplayValue());
else if (recipientGroup)
gs.print('Group recipient: ' + recipientGroup.getDisplayValue());
}
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2023 07:46 PM
Hi Amit!
I am actually looking for a list/report of all users that are receiving any scheduled report. So, all scheduled reports, not just one specific report.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2023 11:44 PM
Hi @MStritt ,
To get a list of users who receive reports, type sysauto_report.list in navigator and bring users field to list view.
Then Right click on any column and export excel