Attachment on RITM to be emailed.

Jon M3
Tera Expert

Im trying to send an attachment that will be mandatory on a RITM via an email notification of some sort.  I need the whole  file and not jst a link to the file.  I see a lot of  posts around GlideSysAttachment.copy but so far nothing thas shows ALL the steps.  A little help? Or is there a better way?

GlideSysAttachment.copy

 

1 ACCEPTED SOLUTION

Hello,

 

To trigger the notification there are two ways:-

 

1) You use the conditions directly on the notification without an event:-

 

Something like below:-

Saurav11_0-1669825008739.png

 

 

2) OR you can use a event to trigger the notification using any script. BR is generally used in such cases.

 

Please check the different ways of triggering email:-

 

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/notification/task/t_Crea...

 

Please mark my answer as correct based on Impact.

View solution in original post

10 REPLIES 10

Generally the event looks as below:-

 

If the notification and business rule using which you are firing the event are on same table it will be as below:-

 

gs.eventQueue('eventname',current,'parm1','parm2');

 

If you are having it on different table you need to glide the record of the notification table and send the value as below:-

 

gs.eventQueue('eventname',gr,'parm1','parm2');// assuming gr is the variabale you used for gliderecord

 

If possible share your script would be easier to assist you.

 

Please mark my answer as correct based on Impact.

I dont have a script - just creating  a notification off the Email Notification in the UI Menu

Thank you for your response - D I need to create a business rule too?

Hello,

 

To trigger the notification there are two ways:-

 

1) You use the conditions directly on the notification without an event:-

 

Something like below:-

Saurav11_0-1669825008739.png

 

 

2) OR you can use a event to trigger the notification using any script. BR is generally used in such cases.

 

Please check the different ways of triggering email:-

 

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/notification/task/t_Crea...

 

Please mark my answer as correct based on Impact.

Mike_R
Kilo Patron
Kilo Patron

If your notification is on the Requested Item Table, in the notification configuration simply check Include attachments

Mike_R_0-1669738427910.png