We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

scheduled reports to send to assignment group managers when the tickets are unassigned

bhanu27
Tera Expert

Scheduled reports to send to assignment group managers when the tickets are unassigned or assigned to field is empty, how can we achieve it, please help me.

2 ACCEPTED SOLUTIONS

@bhanu27 you can include this report too, follow all the steps as is except Step 3: Mail Script.

 

Copy the sys_id of your report then in Step 4: Notification replace 

${mail_script:ag_unassigned_incident_report}

 

With

 

${report:reportID:YOUR_REPORT_SYSID}

 

This will include your report as PDF attachment in the notification email.

 

Please mark my answer helpful and accept as solution if it helped you 👍

Thanks,
Anvesh

View solution in original post

@bhanu27 Who is the run as user for Scheduled Job? And check the user which you are using to test (i.e. changing the assignment group) have access to table , are there any ACL restrictions (report type ACL also).

 

And try creating a new simple report and try to insert that in the code and check, whether you are getting the same error or not?

Thanks,
Anvesh

View solution in original post

14 REPLIES 14

bhanu27
Tera Expert

Hi @AnveshKumar M 

 

Thanks for the your reply and solution, really it is helpful and almost my job is done, the only small thing that is not working is, am getting null report as attachment instead of my report, and when i open my report it showing below message.

bhanu27_0-1698676872300.png

My Notification screen is as below:

bhanu27_1-1698676966775.png

 

 

@bhanu27

Share the report with everyone (Share -> Everyone) and test the notification. 

 

app_store_learnv2_reportanalytics_paris_datavisualization_images_servicenow_reports_opensharepane.png

Thanks,
Anvesh

Hi @AnveshKumar M  

 

I have shared the report with everyone, but still am getting same error, can you please let me know what to do, sorry for inconvenience.

 

Thanks & Regards

Bhanu. 

@bhanu27 Who is the run as user for Scheduled Job? And check the user which you are using to test (i.e. changing the assignment group) have access to table , are there any ACL restrictions (report type ACL also).

 

And try creating a new simple report and try to insert that in the code and check, whether you are getting the same error or not?

Thanks,
Anvesh

bhanu27
Tera Expert

Hi @AnveshKumar M  can you please reply and do the needful.

 

Thank you very much

regards

Bhanu