Email Client Template not populating CC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 04:24 AM - edited 01-08-2024 04:27 AM
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 : gs.getUserDisplayName()+" <"+ gs.getUser().getEmail()+">",assigned_to in the cc field its not populating anything. What are the other ways to achieve the same?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 09:41 PM
It's not working in native. And yes it's a scoped app.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 09:43 PM - edited 01-08-2024 09:43 PM
No it's not working in native view as well and yes it's a scoped app.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 10:19 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2024 02:08 AM - edited 09-21-2024 02:11 AM
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.