Possible ways to send notifications to an e-mail address in a field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2023 10:09 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2023 11:11 AM
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