Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Send email when new record is inserted

jitendra2027
Tera Contributor

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.

7 REPLIES 7

@jitendra2027 

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.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

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?

@jitendra2027 

I already provided the steps above to use event queue based approach

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader