- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
I want to send an email notification 'Assigned To field manager' in CC
For ex: Assigned to : My self
cc: My manager email
I will really appreciate your responses.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
you can't set the manager as CC directly using Email Notification
you need to use Email script for this and then include that in your notification body like this
1) Create a New Notification Email Script:
2) Mail script
Name: Mail Script Name
Script: your script
3) Now call this Notification Email script in your Notification as shown below using the syntax:
${mail_script:Mail Script Name}
Email script as this
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
// Add your code here
email.addAddress("cc", current.assigned_to.manager.email.toString(), current.assigned_to.manager.name.toString());
})(current, template, email, email_action, event);
💡 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
an hour ago
Hi @kavitha18 ,
You can use email script to add "Assigned to" field's manager in CC.
email.addAddress("cc","email_address","recipient_name");
If this helped you in anyway, please hit thumps up or accept this as solution if it resolved your query.
-Dhanraj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
you can't set the manager as CC directly using Email Notification
you need to use Email script for this and then include that in your notification body like this
1) Create a New Notification Email Script:
2) Mail script
Name: Mail Script Name
Script: your script
3) Now call this Notification Email script in your Notification as shown below using the syntax:
${mail_script:Mail Script Name}
Email script as this
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
// Add your code here
email.addAddress("cc", current.assigned_to.manager.email.toString(), current.assigned_to.manager.name.toString());
})(current, template, email, email_action, event);
💡 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
