How to add "Requested for" in cc in "Notification" activity of workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi @Ankur Bawiskar ,
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
how are you sending email via workflow?
via notification activity or Event activity?
share screenshots
to include CC you need to use email script only
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
I am sending an email through Notification activity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
you need to use <mail_script> within that notification activity message
Give correct variable name
<mail_script>
email.addAddress('cc',current.variables.requestedFor.email.toString(),current.variables.requestedFor.name.toString());
</mail_script>
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
To add the "Requested for" user to the CC list in a ServiceNow workflow notification activity, you must use the email script (Give it a name like cc_user_add) in the Notification activity.
In the script, use email.addAddress("cc", current.variables.requested_for.email, "Name"); to dynamically add the user.
In the notification body , call it ${mail_script:cc_user_user}
