- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2025 01:20 AM
Hello community i need te create a notification that get triggered only between 9h and 18h when incident record is created is there any solution for this?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2025 04:15 AM
not possible directly with notification create/update checkbox
You can use after update business rule and use gs.eventQueueScheduled() and trigger it the next day at 9am.
In that business rule check if the current date/time (france) is between that 9am to 6pm, if yes then use gs.eventQueue(), if not then in eventQueueScheduled() you can inform system when this event should be processed.
so in your business rule determine the next working day and set the start time as 9am and then use that
eventQueueScheduled(String name, Object instance, String parm1, String parm2, Object expiration)
Get next business day (date/time - based on schedule)
I believe I have answered your question and you can enhance it further from here.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2025 01:39 AM
Hi @Skydev22
Add these conditions:
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
‎04-02-2025 02:40 AM
Hello @Skydev22 ,
Is your company/client operating in different places of the world that have different time zones?
If so then they would first need to decide which timezone that 9 - 18h requirement should apply to. Because 9AM in India would be around midnight for someone in the USA, for example.
Regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2025 03:11 AM
@Robert H i want to do it on delegations not incident sorry timezone france
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2025 03:30 AM
Hello @Skydev22 ,
First off, I would really like to understand that business requirement. Why would you want a notification to be sent when a Delegation is created, but only when it is created between the 9th and 18th hour in France? Or are you referring to the time set in the Starts or Ends field of the delegation itself?
Regards,
Robert