- 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: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 06:11 AM - edited 02-19-2024 06:11 AM
Ignore the scenario i mentioned, lets take simple example, In Scheduled job i will trigger the notification. And notification does't have any condition, it will send notification to admin(me) with subject "HELLO".
Scheduled script:
Notification:
How could this also not work

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 07:36 AM
It should work fine, check if your scheduled job is stuck, you can check against, sys_trigger table.
If you want to validate if your event is getting triggered, you can use background scripts to validate and check against event logs table.
Aman Kumar