Adding CC in Workflow notification?

niveditakumari
Mega Sage

How to add CC into the workflow notification?

Can anyone please help me in this?

 

 

Thanks In Advance

Nivedita

1 ACCEPTED SOLUTION

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

use the following mail script in workflow notification activity message to achieve that:

<html>
<body>
<mail_script>
email.addAddress("cc","test@test.com");
</mail_script>

If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you

Cheers
Alberto

 

View solution in original post

27 REPLIES 27

Raj68
Mega Guru

Hi Nivedita,

to add cc in email you can follow below step:

(function runMailScript( current,template, email, email_action,event) {

 

 

email.addAddress("cc", current.assignment_group.manager.email, current.assignment_group.manager.name);

 

 

})(current, template, email, email_action, event);

 

NOTE: Mark correct or helpful if it helps you.

Warm Regards,

Raj patel

 

 

Hello Raj,

In my workflow there is no where any run script defined. So can you please suggest me where to write this code.

 

Thanks in Advance

Nivedita

niveditakumari
Mega Sage

Hello

I made some changes in code and I did testing as well.

Now I can see in logs the mail address which I given in CC that is showing in copied section. I think my testing is successful.

Below is the logs screenshot :

find_real_file.png

 

Please confirm me that my testing is successful if anyone does the same thing and got the same result.

 

Thanks in advance

Nivedita