Possible ways to send notifications to an e-mail address in a field

C_dric Chen
Tera Contributor

Greetings, people.

 

I'm looking for a way to send a notification to an e-mail address that's in a string field (instead of a reference field). For example: My app has a string field called "E-mail", there's an address in this field (like "barack.obama@example.com"), and I want to make ServiceNow send a notification to "barack.obama@example.com". Is it possible to configure that?

 

FWIW, I'm trying to achieve this because my app has to accommodate the e-mail addresses of external personnel who are not in the "sys_user" table.

 

Thank you in advance!

 

 

1 REPLY 1

Manmohan K
Tera Sage

Hi @C_dric Chen 

 

Yes , you can do it by using eventQueue code probably in a business rule configured to trigger when you want to send notification to user

 

gs.eventQueue('event.name', GlideRecord, parm1, parm2); // standard form

 

We can tweak above code to send email address In parm 1 of event

gs.eventQueue('sample.event',current,example@snc.com,'recepient name');

 

Then you can configure a notification to be triggered via event and check the parm1 or parm2 contains recipient boxes in the notification like below

 

ManmohanK_0-1687457444543.png