Email Client Template not populating CC

Shruthika V1
Tera Contributor

There is a requirement to create email client template and have the cc populated with current logged in user and "assigned to" of the form. But when we put it together as javascript &colon; gs.getUserDisplayName()+" <"+ gs.getUser().getEmail()+">",assigned_to in the cc field its not populating anything. What are the other ways to achieve the same?

13 REPLIES 13

@Ankur Bawiskar 

It's not working in native. And yes it's a scoped app. 

@Ankur Bawiskar 

No it's not working in native view as well and yes it's a scoped app. 

@Shruthika V1 

then use script include based approach and call it from there

Check any existing OOB email client template and configure the same

In that script include function query sys_user with logged in user and get the email, append it with assigned to

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ton ThalesNL
Tera Contributor

Ok after our upgrade from Utah to Washington DC the Email Client template functionality (used when sending an email when you are in an record, top menu three dots, Email ) got broken in a strange way.. the CC list did not get populated anymore..

 

What I had to do, in the related Email Client Template, CC field, was remove the spaces between the fields I had configured e.g. I had to replace "assigned_to,watch_list, u_our_external_mail_list" by

"assigned_to,watch_list,u_our_external_mail_list" and it worked again.