Issue with Attachments Not Being Included in Email Notification Triggered via gs.eventQueue

Astik Thombare
Tera Sage

I am triggering a notification using an event and passing the target record's sys_id in gs.eventQueue. The notification is being triggered successfully, and I have checked the "Include attachments" checkbox in the notification settings.

 

However, while I can see the attachments listed under "Email Attachments" at the bottom, they are not attached to the email record, unlike what I have observed with other notifications.

 

AstikThombare_1-1748191477721.png

 

While with other Emails with attachments 

AstikThombare_2-1748191591483.png

 

In this scenario, will the attachments be sent with the email? Additionally, does the "Include attachments" option simply provide a link to the actual attachments, or does it physically attach the files to the email?

 

1 ACCEPTED SOLUTION

James Chun
Kilo Patron

Hi @Astik Thombare,

 

It looks like the 'Attachment' embedded list is fetching data from the attachment [sys_attachment] table.

My guess is that the embedded list is showing the list of attachment records that are associated with the email record [sys_email].

So, unless you created a new attachment record and linked it to the email record, I think it's fine that the list is empty. Normally, you are attaching files that are linked to another record, an Incident for example, and there is no need to create another attachment record and associate it with the email record. 

 

And in terms of the 'Include attachments' option, it should include ALL attachments from the triggering record as actual (physically attach) attachments, not links, i.e.

JamesChun_0-1748211570184.png

Ref - https://www.servicenow.com/docs/bundle/yokohama-platform-administration/page/administer/notification...

 

Cheers

View solution in original post

1 REPLY 1

James Chun
Kilo Patron

Hi @Astik Thombare,

 

It looks like the 'Attachment' embedded list is fetching data from the attachment [sys_attachment] table.

My guess is that the embedded list is showing the list of attachment records that are associated with the email record [sys_email].

So, unless you created a new attachment record and linked it to the email record, I think it's fine that the list is empty. Normally, you are attaching files that are linked to another record, an Incident for example, and there is no need to create another attachment record and associate it with the email record. 

 

And in terms of the 'Include attachments' option, it should include ALL attachments from the triggering record as actual (physically attach) attachments, not links, i.e.

JamesChun_0-1748211570184.png

Ref - https://www.servicenow.com/docs/bundle/yokohama-platform-administration/page/administer/notification...

 

Cheers