- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2019 07:32 AM
I'm trying to send a notification via a Background Script but nothing happens.
Does anyone know how to do it?
The script:
var gr = new GlideRecord('incident');
gr.get('2d833bd9db312300ad8a2fb7489619c5'); // sys_id of the incident
gs.eventQueue('incident.commented', gr);
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2019 08:20 AM
Hi Jonatan,
talking about notifications fired by an event, the problem could be anywhere.
The script posted looks fine, you can check the sysevent table if the event is correctly triggered.
Other checks you can do:
- in incident.commented event, set the correct table (incident)
- in the notification, set a recipient that can receive email and preview it using an existing record
Let me know if it helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2019 08:20 AM
Hi Jonatan,
talking about notifications fired by an event, the problem could be anywhere.
The script posted looks fine, you can check the sysevent table if the event is correctly triggered.
Other checks you can do:
- in incident.commented event, set the correct table (incident)
- in the notification, set a recipient that can receive email and preview it using an existing record
Let me know if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2019 03:07 AM
Thanks, that helped!
I did check the OOB notification and there wasn't a receiver in any field