Send email to personal mail address of subject person from notification

Souvick A
Tera Contributor

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 

2 REPLIES 2

Harish KM
Kilo Patron
Kilo Patron

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}

Regards
Harish

Community Alums
Not applicable

Hi @Souvick Adhikari ,

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