How do we add a specific attachment to a notification via event queue?

sunilhp
Tera Contributor

I have a requirement to generate an Email Notification via an event queue. in my case the incident contains two attachments but I need to pass only one attachment to the gs.eventqueue method. Can someone tell me if there is a way to achieve this? the following code is inserting all the attachments in the incident but I want only one attachment. any help would be appreciated!

gs.eventqueue('event record', incObj, RECIPIENTS.toString());

6 REPLIES 6

Hi @Ankur Bawiskar ,

 

I tried above solution but didnt work. Do we have any other alternative way to achieve this?

Thank you!

Attaching my piece of code which I tried.

 

 

@Priya164 

I had tried earlier and it worked for me

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader