how to add cc in email notification inside flow designer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 04:21 AM
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 10:06 AM
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:
- Navigate to the "System Notification -> Email -> Notification email Script" in the filter navigator.
- Set the name of email notification "add_newusers_to_cc".
- 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.
Reference link : https://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.
Sujatha V.M.