Sending a notification during business hours only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 10:36 PM
Hi all,
I have used the inactivity monitor to fire an event and I am using that event to trigger a notification.
However, I need the notifications to be sent during business hours only. I.e. 0600-1800.
Could you tell me how I do that?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 10:43 PM
Hi @reza1921 ,
You can use eventQueueScheduled for this purpose, just write a logic to check if current time is within the work time if yes, then let it go with eventQueue, but if it is beyond, you can use eventQueueSchedule to ensure it goes within the working hours.
For checking if current time is within the working hours, create a schedule and use GlideSchedule APi to validate:
Ref article:
https://developer.servicenow.com/dev.do#!/reference/api/sandiego/server/c_GlideScheduleScopedAPI
checkout this article for eventQuuescheduled:
https://developer.servicenow.com/dev.do#!/reference/api/tokyo/server/no-namespace/c_GlideSystemScope...
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 10:51 PM
Hi @reza1921 ,
Please refer to my answer: https://www.servicenow.com/community/guided-learning-itsm/need-to-send-an-email-notification-on-last...