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

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


Hi Chuck it seems email.setTo() doesn't work.



So I'll be moving them to a event trigger notifications.



Thanks a lot for the reply