
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2016 04:13 AM
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
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2016 05:25 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2016 05:25 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2016 08:24 PM
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