- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2018 04:14 AM
Hi
I have setup a Client template for incidents which uses a script to populate the email client (envelope Icon) with details of the incident. I would also like to automatically populate the the 'to' field with the owner of the selected CI in the incident record. The problem is, no matter what I do I cant seem to script anything that populates the 'to' field?
I suspect the 'to' field in the email client cant be populated with scripts? and the email address must be entered directly?
Can anyone suggest a way round this? I really need the email client 'to' field to be dynamic.
Thanks
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2018 06:28 AM
You can do this with an email client Template from System Policy> Email> Client Templates.
You can dot-walk to your email field through any field on the form. Example from Customer Service:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2018 06:14 AM
Hi Ashutosh
Thanks for your reply, unfortunately neither of the above answers work so I will attempt your script include method.
Im afraid I am pretty new to servicenow and scripting though, would you be able to go into a little more detail please?
Also, it turns out the field i require isnt in the cmdb table its in a table called service_offering
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2018 06:22 AM
You should still be able to dot walk it from the Incident table via the breadcrumb filter. As long as it is in one of the related fields.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2019 12:34 PM
This doesn't work for me in the 'To' field as 'current' is undefined according to the error logs. Is there a way to get the current record or sys_id? I'm trying to query associated records to build a cc list and I need the sys_id or current record to do this query.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2018 06:28 AM
You can do this with an email client Template from System Policy> Email> Client Templates.
You can dot-walk to your email field through any field on the form. Example from Customer Service:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2018 06:30 AM