CC group email using mail script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2024 08:59 PM - edited ‎03-07-2024 09:00 PM
I have been trying to get this code to work. I am trying to cc a group based on certain conditions but the cc is not working correctly. The conditions are if the Assigned to is empty and the incident belongs to certain categories and subcategories to the CC compliance group. It is not CC'ing any group when triggering

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2024 09:09 PM
Hi @DenishaLias ,
You can use these sample scripts mentioned :https://www.servicenow.com/community/itsm-forum/cc-people-in-group/td-p/611692

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2024 09:14 PM
Hi @DenishaLias there is a error in your script at line 27 it should be
gr.addEncodedQuery("yourencodedquery"+current.assignment_group);
line 28 is not required since your checking in line 27. comment line 28
Harish