How to setup email notifications in a scoped application. (studio app)

Teresa Core
Kilo Expert

We have built a scoped application that is extended off the task table.  However, we are unable to send emails for anything submitted.  I am seeing multiple things to get this done and it is causing confusion as the the correct way to get this done.

I am pushing against an end of the month (this month) deadline.  Can someone point me to the correct way to add notifications to a scope?

What I have done so far, was create the notification - pointing to the task table, event name sc_req_item.inserted, (nothing).  I was confused by the development training for studio, notifications training section.  So any help would be great. 

4 REPLIES 4

Tony Chatfield1
Kilo Patron
Hi, can you see the sys event in the event log, are it's fields all populated correctly - Parma, instance (triggering record) sys_id etc

I am only seeing the approval.inserted, but nothing else.  I have checked logs and everything, but nothing is happening on the notification.

HI, you see 'approval.inserted' but do you see 'sc_req_item.inserted' in the event log? if not the event is not triggered and so the email is not triggered.

Take a look at the response from jessecregan, as it sounds like this is the issue

 

User658787
Mega Guru

When you say it is extended off of the task table, do you mean you created a new table that extends task or are you just storing your data directly in the task table?

The event name you are trying to use is used for service catalog requests.  That probably isn't the event you want.  You will either want to make one of your own and fire it via a workflow or business rule, or when you create the notification set up the When to send values to send the notification when a record is inserted into the table. 

If you go the business rule route, you will be using this

https://developer.servicenow.com/app.do#!/api_doc?v=madrid&id=r_ScopedGlideSystemEventQueue_String_Object_String_String_String