- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 04:21 AM
Hi All,
I want sent notification to "assigned to" in catalog task, if scheduled date is today and state of catalog task is closed skipped.
To achieve this i have created the i have created scheduled job,event and notification as below, but its not working please help!
Event Registry:
Schedule job:
Notification:
Thanks in Advance
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 05:59 AM
Hi @Sachin G K1
IN order to generate an event you will need the name of the event which you have done in your script, and since your notification is on the catalog task table, you also need to pass on the object of the record for which you are passing on the assigned to and other details.
You can try below syntax:
var scTask = new GlideRecord("sc_task");
scTask= scTask.addEncodedQuery("opened_atONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()");
scTask.query();
while(scTask.next()){
gs.eventQueue("test.eventregistry", scTask);
}
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 05:06 AM
Hello @Sachin G K1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 05:27 AM
i tried gs.eventQueue('event_name', 'table_name', ', ');
But not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 05:29 AM
gs.eventQueue('event_name, table_name, '', ''); -> try this
gs.eventQueue('event_name', 'table_name', ', '); -> your code single quote missing
If my response helped, please mark its As " Helpful."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 05:34 AM
gs.eventQueue('event_name, table_name, '', '');
If use this its showing error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 05:51 AM - edited 02-19-2024 05:56 AM
I tried, gs.eventQueue('test.eventregistry'); And removed all the condition in notification and included gs.log in notification to debug. I am getting log in system logs but not able to see mail.