- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 05:17 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 06:07 AM
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 05:36 AM
@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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 05:37 AM
gs.eventQueue('your_event_name',new GlideRecord('change_request'),'sys_id');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 05:40 AM
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 05:44 AM
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');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 06:07 AM
@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