- 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
03-19-2021 05:18 AM
Hi ,
I have the similar requirement. A word document should be attached with the email. using above business rule it didn't work.
Its a checklist docx which should go with email and not required to be on ticket.
Can anyone help me how this can be done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2021 11:19 AM
have same requirement. BR is not running for me. Can someone help me?
