How to setup email notifications in a scoped application. (studio app)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2020 09:36 AM
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.
- Labels:
-
Scoped App Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2020 10:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2020 12:02 PM
I am only seeing the approval.inserted, but nothing else. I have checked logs and everything, but nothing is happening on the notification.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2020 04:28 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2020 10:47 AM
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