Send email when new record is inserted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2022 11:39 PM
Hello team,
I have created a user on ServiceNow with an admin account. When this new user or record is inserted in sys_user table I want an email should be sent to the user that is created on the same email that is provided.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2022 02:39 AM
you can use event based notification i.e. event and email notification both on sys_user table
Notification - Send to Event creator - True
Event parm1 contains recipient - True
Then use after insert BR on sys_user table and use this script
gs.eventQueue('event_name', current, current.email.toString());
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2022 03:59 AM
Sorry, but I didn't get what do you want to convey. Can you please elaborate on the same with the screenshots so that I can get it more clearly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2022 04:04 AM
I already provided the steps above to use event queue based approach
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader