Event is Triggered but the Notification does not being sent

Snow Tomcal
Tera Expert

Hi All,

I have a notification that supposed to be triggered when an event is being fired.

The event is being fired but the notification not.

Does anyone know why?

 

Thanks

1 ACCEPTED SOLUTION

@Snow Tomcal please change the event queue line to below 

you need to send glide record object like below 

gs.eventQueue('your_event_name',changes,'sys_id'); 

 

Also please send the sys_id of the recipient in the place of sys_id in parm1

 

Hope this helps 

Mark the answer correct if this helps you 

Thanks

View solution in original post

10 REPLIES 10

@Snow Tomcal what the object that you are passing ? l

ike gs.eventQueue('your_event_name',object ,parm1,parm2);  -->in this whats the exact object that your passing .Is that object related to the table on which notification and even is configured on ?

 

gs.eventQueue('your_event_name',new GlideRecord('change_request'),'sys_id'); 

@Snow Tomcal you need to pass the glide record object of change _request table like below 

var gr = new GlideRecord('change_request'); 

gr,query();

while(gr.next())

{

gs.eventQueue('your_event_name',gr,'sys_id_of_of_the_recepient'); 

}

 

Hope this helps 

Mark the answer correct if this helps you 

Thanks

This is the script :

 

var changes = new GlideRecord('change_request');

changes.addencodedQuery('the condition');

changes.query();

 

while(changes.next()){

gs.eventQueue('your_event_name',new GlideRecord('change_request'),'sys_id'); 

}

@Snow Tomcal please change the event queue line to below 

you need to send glide record object like below 

gs.eventQueue('your_event_name',changes,'sys_id'); 

 

Also please send the sys_id of the recipient in the place of sys_id in parm1

 

Hope this helps 

Mark the answer correct if this helps you 

Thanks