Notification didn't triggered after creating event & scheduled job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2024 11:09 AM
Hi,
I am trying to trigger notification when a KB article is published after 5 mins scheduled job must be executed & notification must be trigered.
I created a event,scheduled job .However , after 5 mins notification didn't got triggered.
PFA for reference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2024 11:45 AM - edited ‎09-13-2024 11:45 AM
Hi @shubhamverm3478 ,
Did you check event log table. in your screenshot sc.png there is only event name and no other parameter. The format is incorrect
gs.eventQueue('event.name', 'current', parm1, parm2); // parm1 and parm2 you can ignore if you having hardcoded email id in notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2024 05:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2024 05:41 AM
Hi @shubhamverm3478 ,
In gs.eventQueue('event.name', 'current'); current is an object and not string.
so, query the knowledge table and pass the object in 2nd parameter.
Example:
var current = new GlideRecord('kb_knowledge');
current.addEncodedQuery("your_query");
current.query();
if (current.next())
{
gs.eventQueue('event.name', current,"","");
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2024 07:46 AM
Check who the notification should send to? If none give your name and see if email getting triggered. Once updated in notification re run the full activity again on another KB article