- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2016 11:49 AM
Hi,
How do we pass an external email address as a parameter in the event
Came across this one for cc and bcc, Scripting for Email Notifications - ServiceNow Wiki.
Want to add the external email address stored in a lookup table, as an actual recipient itself.
Thank in advance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2016 11:53 AM
You have method called email.setReplyTo() but that never worked. If you are triggering the notification via event. You can pass it as one of the parameter in gs.eventQueue().

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2016 11:53 AM
You have method called email.setReplyTo() but that never worked. If you are triggering the notification via event. You can pass it as one of the parameter in gs.eventQueue().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2016 11:55 AM
gs.eventQueue('even_name',obj, abc@xyz.com,abc1@xyz.com ,'email_text');
checking parm1 as recipient on notification would work?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2016 11:58 AM
Yes, a minor tweak, you need to enclose the comma separated email string with quotes like this
gs.eventQueue('even_name',obj, ' abc@xyz.com,abc1@xyz.com' ,'email_text');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2016 01:19 PM
Let me know if your question is answered. If yes please close the thread by marking my response as correct.