Configure email notification to send to personal email is business email is null

AlexandraRogers
Tera Contributor

Today we have all email notifications for HR case updates set to trigger and send to an employee's business email (if populated) as well as the personal email address listed in their HR Profile. This gets redundant and 'spammy' when a user has both a business email and a personal email because they get the notifications twice.

 

Is there a way to only trigger the email to be sent to the personal email address only if the business email is null?

 

Thank you for your help!

1 REPLY 1

Sebas Di Loreto
Kilo Sage
Kilo Sage

@AlexandraRogers 

I think you can achieve this by adding an email script to the body of the notification that uses the email.addAddress command (info here). There is only cc and bcc type but:

  • you could leave business email address on the "who will receive" the notification
  • call the email script from the body of the message: ${mail_script:name_of_email_script}
  • build some logic on the email script to ONLY provide a 'cc' with the personal email address IF there is no business email address.

If I helped you with your case, please click the Thumb Icon and mark as Correct.