Notification didn't triggered after creating event & scheduled job

shubhamverm3478
Tera Contributor

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.

9 REPLIES 9

Vignesh21
Kilo Guru

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

Community Alums
Not applicable

Hi,

I checked event log table.I believe event is triggered .Still notification didn't got triggered.

I even  wrote gs.eventQueue('event.name', 'current'); 

PFA for reference.

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,"","");
}

@shubhamverm3478 

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