The CreatorCon Call for Content is officially open! Get started here.

Passing parameters to email_client.do

Community Alums
Not applicable

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

3 REPLIES 3

dvp
Mega Sage

YOu can use client template functionality


http://wiki.servicenow.com/index.php?title=Enabling_the_Email_Client#Creating_Email_Client_Templates...



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


johnram
ServiceNow Employee
ServiceNow Employee

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


felladin
Tera Guru

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