Send email once record producer is submitted?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2021 07:27 AM
Hi All,
I have created a record producer to allow users to submit a change request.
What I am wondering is how can I send an email to a specific group once the record producer has been submitted? Along with the change details.
Can this simply be done in the 'Generated record date' script by using an event and link it to a notification?
Any guidance/assistance would be much appreciated.
Thanks!
Alex

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2021 07:39 AM
You can always create a notification that is either triggered when the record is first inserted, or if you want to use the event path, triggered from an event.
When I use events, I typically check to see if there is an event that exists and is not being used by notifications. If I cannot find one I create one. When creating an event, be sure to have the event configured on the table you want the notification to be triggered from. You can use a naming syntax of: table_name.purpose
Let us know if you need further assistance, or if this is an acceptable solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2021 07:50 AM
Hi,
you can simply create normal notification on that table Inserted - True
But ensure this one sends only when record is created from record producer
To check this you can use advanced notification script condition; use the advanced view
Check if the record was submitted because of some record producer; this ensures this notification sends email only when record got submitted from record producer
sc_item_produced_record table holds if record was created from record producer
var gr = new GlideRecord("sc_item_produced_record");
gr.addQuery("task", current.sys_id);
gr.setLimit(1);
gr.query();
answer = gr.hasNext();
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2021 08:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2021 09:26 AM
Hi,
notification should be on change_request i.e. record producer target table
How is the recipient set? if recipient set is not correct email won't trigger
1) user should be active, not locked out and has valid email address
2) user has notification preference enabled
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader