Attachment Not Included in Email Notification

gnunez
Kilo Guru

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

1 ACCEPTED SOLUTION

Sam198
Mega Guru

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);

View solution in original post

11 REPLIES 11

Vamsi22
Giga Contributor

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.

VShine
Mega Guru

 have same requirement. BR is not running for me. Can someone help me?