Passing parameters to email_client.do
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2017 03:01 AM
I have a requirement in which, I select a list of employees (employee table extends sys_user), and click on a UI Action Email. On click it opens up the email client. Now I need the To field in the template populated with the emails of the employees I selected. Can anyone tell me how to do this

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2017 04:26 AM
YOu can use client template functionality
In your To field of client template use something like this
javascript: current.assigned_to.name + " <" + current.assigned_to.email + ">"
change the assigned_to to field that holds your employee's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 12:19 PM
The ServiceNow Wiki content is no longer supported. Updated information about this topic is located here: Email Setup
Visit http://docs.servicenow.com for the latest product documentation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2018 01:41 AM
Hello,
Just a little added information; in the template you can call Email Scripts just as in Notifications. This means you can adjust the template based on ticket information such as adding or subtracting recipients, body and subject fields etc.
With regards
Anton Vettefyr