dynamically send scheduled report with attachment to the requested by column from the report result?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2025 01:02 AM - edited ‎07-04-2025 01:03 AM
Hi All,
I have created a report on change_request table and added Requested by as column
I have created a scheduled report and provide one DL to send an email
mentioned attachment type as PDF
Currently scheduled report is running and sending the PDF attachment to the provided DL
but the customer want to send dynamic email to the "requested by" user email with PDF attachment
Can anyone help me with the scheduled script to send PDF attachment dynamically to the requested by users
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2025 01:11 AM
you will have to identify the table sysId in sys_attachment and determine the PDF
Then somehow use eventQueue() based approach but how will you know which Requested by to pick to send email?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader