- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2019 02:44 PM
Hello all,
I want to include an attachment in our "request completed" email notification. I have uploaded the attachment to the email notification and selected the "Include Attachments" checkbox, but it isn't being uploaded. I thought it was suppose to simple and "include attachments" would attach it but thats not the case. Am I misunderstanding how this checkbox works or does anyone know another way to accomplish this?
Thanks,
Grace
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2019 08:10 PM
Hi gnunez,
You can pick up and attach the notification physical attachment to the actual email with a Business Rule on sys_email table:
Before - Insert
Condition:
Subject Starts with = Your subject (or as per your requirement when this BR should run and attach the attachment),
var attachment = new GlideRecord('sysevent_email_action');
if(current.subject == "your email subject"){
attachment.addQuery('name', 'Your notification name');
}
attachment.query();
while (attachment.next()) {
strTemp = attachment.sys_id.toString();
GlideSysAttachment.copy('sysevent_email_action', strTemp, 'sys_email', current.sys_id);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2019 03:05 PM
Include attachments means it will include the attachments from the record that generated the email and NOT the email notification itself. In other words, the attachment would need to be on the linked sc_request/sc_req_item record.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2019 10:06 PM
Hi,
The purpose of that checkbox is-
Include attachments | Select this check box to send all attachments from the triggering record as email attachments. |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2019 04:36 PM
Thanks for the reply. No wonder the attachment isn't showing. I added it to the email notification and selected "include attachments", but it wasn't attached.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2019 10:22 PM
Hi,
The attachments it picks is for the table record which is triggering the email
Example: if you are having attachment on Incident record INC001 and your email notification is on incident table and it triggers when INC001 is resolved; it would pick attachments added to INC001
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader