- 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 04:24 AM
Hi @Sachin G K1
I recommend try with Flow Designer , easy and quick and low code.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 04:25 AM
Trigger
Schdeule
Action
Look up for records
Date = Today and State = closed skipped
LOgic
For all records
Action
Send notifications.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 04:25 AM - edited 02-19-2024 04:26 AM
Hi AG,
This is not for any specific catalog item, i want this functionality to be general
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 04:31 AM
General mean? Still it will take the table to run.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************