how to add cc in email notification inside flow designer?

Mouktik_B
Tera Contributor

I have a flow which has send email notification , I want to add 3 email addresses in cc below to option who are not members of the assignment group. 

Tried scripting but that did not work . 
what can be done ?

1 REPLY 1

Sujatha V M
Kilo Patron
Kilo Patron

@Mouktik_B

 

You need to create a email script and define the user you want to set as cc in email and then call the email script from the notification which can be called in the flow designer using "Send Notification" activity. 

 

Steps to create Email Script and how to use:

  1. Navigate to the "System Notification -> Email -> Notification email Script" in the filter navigator.
  2. Set the name of email notification "add_newusers_to_cc".
  3. add below code in the script:
 email.addAddress("cc","email_address_of_the_user","Name_of_ther_user");
//if you want to push the user dynamically then you can use the scripting to validate and push the user.

4. Now navigate to the notification where you want to add cc.

5. add "${mail_script:add_newusers_to_cc}" in "Message HTML" field in "What it will contain" form section of notification.

6. Select the notification in the 'Send Notification' activity in flow designer. 

SujathaVM_0-1713805563114.png

 

 

Reference linkhttps://www.servicenow.com/community/now-platform-forum/how-to-set-cc-with-email-content/m-p/1025103

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.