Email Notification Send To a Catalog Item Variable

Tadz
Tera Guru
Tera Guru

Hi, Is it possible to make an Email Notification that will send the notif to the user reference field variable in the catalog item?

I was hoping not to use the event triggered notification.

Is it possible using the normal condition but the recipient is a catalog item user reference variable?

Thanks,

Tadz

1 ACCEPTED SOLUTION

I don't see a method to set the "to" field in the docs via scripting. I see almost every other field, but not email.setTo(). It's worth a try - let me know.



The key is going to be check if that variable and value exist before blindly setting it otherwise other catalog items could trigger that notification and it won't work at all.



http://wiki.servicenow.com/?title=Scripting_for_Email_Notifications



Otherwise the event is pretty easy to set up.


  • Register your event
  • Trigger the event from the workflow
  • Create a notification (or modify an existing one) to react to that notification

http://wiki.servicenow.com/index.php?title=Events_and_Email_Notification


View solution in original post

6 REPLIES 6

amaradiswamy
Kilo Sage

Hi Cris,



Is the notification will be defined in workflow or on a table level?



Thanks and regards,


Swamy


Hi Swamy,



Its on a table level


Chuck Tomasi
Tera Patron

Not according to what I see. There are no variables listed in the generic sc_req_item notification because the variables are specific to each catalog item configuration.


find_real_file.png


The best way is going to be to use the event driven notification and pass the recipient as a parameter then use one of these checkboxes for Event parm1 or event parm2 contains recipient.



find_real_file.png



Events and Email Notification - ServiceNow Wiki


Hi Chuck,



I see, so the only way is to use a event driven notification right?



can' we use email notification script just the same as cc or bcc? On wiki theres only cc or bcc only.



Another question though.


Can we trigger a notification with just a cc without a to?



Thanks,


Tadz