Sending Individual Emails with PDF Attachments to Multiple Users in ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
I am looking for a functionality within ServiceNow that can be used to send individual emails to a large number of users say for 500+ users, each with their respective PDF attachment.
What ServiceNow features or approaches are recommended to accomplish this?
Any guidance or solutions would be greatly appreciated.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi @Utkarsh_001 ,
ServiceNow should be able to handle the splitting of how many recipients per email automatically. I would not recommend sending individual emails if they are too many. What you can do instead, is to set the recipients in bcc and then the recipients won't be able to see the other recipients.
You can create a Notification Email Script as follow:
var arrBCC = event.parm1.split(",");
for (var i = 0; i < arrBCC.length; i++) {
email.addAddress('bcc', arrBCC[i]);
}
Then you can trigger the notification via an event and pass the recipients by parm1.
Then add the email notification script to the notification content:
${mail_script:NAME_MAIL_SCRIPT}
Attaching a file to an email can be added by an email notification script. Example:
template.print ( 'Attachment: <a href="/sys_attachment.do?sys_id=' + now_GR. sys_id + '">' + now_GR. file_name + '</a>\n ' ) ;
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
what's your actual business requirement here?
You want a report to be sent to someone based on some filter condition on some table?
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