Generate a report manually with an UI Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2023 02:33 AM
Hi community,
I'm trying to create an UI Action on a List Context Menu for people to generate a report with all the data of last month and send it directly by mail to the caller. I wanted to know if you have an idea on how to do it ? I'm still new and don't know how to write a script to do so.
Thanks in advance for your help 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2023 06:37 AM
Hi ,
Please refer the below threads may helpful to you.
https://www.servicenow.com/community/developer-forum/run-a-report-from-ui-action/m-p/1929405
https://www.servicenow.com/community/itsm-forum/report-on-ui-action-being-clicked/m-p/2339772
ServiceNow Commnunity MVP -2018 class.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2023 08:50 AM
Thanks for the answer !
I've tried to do it, but it isn't working for me. I received an error message saying:
Uncaught TypeError: Cannot read properties of null (reading 'open')
Actually what I want is to have a button on a table list view that will send a email to the current user with the report in it.