Send email to personal mail address of subject person from notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2022 07:34 PM
Hello all,
I need help to configure email sent to personal email address of subject person.The address is present on HR profile.
Requirement is to configure email notifications to sent to both personal and official email address.Both these fields are present on HR profile,so I need help to configure through notification.
Thanks in advance
Regards
Souvick
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2022 07:42 PM
Hi you can have a notification email script and glide the HR profile table and set it as cc address and call this email script in your Notification
var gr = new GlideRecord('sn_hr_core_profile');
gr.query();
if(gr.next()) {
email.addAddress("cc", gr.email, gr.getDisplayValue()); // email field on HR profile
}
// call this Notification script in your notification with below syntax.
${mail_script:script_name}
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2022 07:43 PM
Hi
You can use any of these approaches :https://community.servicenow.com/community?id=community_question&sys_id=c32f3b33db7eac10ddb1d9d96896...
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep