How can I add cc email script on my notifications.

Mycena Jane Cam
Tera Contributor

I'm trying to add an cc email script on my notification where I have to add the assigned to of the task of the ritm but it doesn't work. Can you tell me what's wrong in my script. Thank you so much. Appreciate you helping me.

 

MycenaJaneCam_0-1667795696222.png

MycenaJaneCam_1-1667795721815.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Mycena Jane Cam 

you should update the line as this

email.addAddress('cc', gr.assigned_to.email.toString(), gr.assigned_to.getDisplayValue());

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

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Mycena Jane Cam 

you should update the line as this

email.addAddress('cc', gr.assigned_to.email.toString(), gr.assigned_to.getDisplayValue());

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

thanks this work 🙂