CC group email using mail script

DenishaLias
Tera Contributor

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 

2 REPLIES 2

Community Alums
Not applicable

Harish KM
Kilo Patron
Kilo Patron

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

Regards
Harish