Does inSchedule work with excluded times?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2023 07:45 AM
We have a schedule that has 3 Schedule Entries:
- 16:00 - 23:59 (type: excluded)
- 11:00 - 12:00 (type: excluded)
- 00:00 - 7:00 (type: excluded)
We are using this for our on-call staff who work all hours not in the above time. The times above are all considered times the agent is unavailable (the first one is after hours, the 2nd one is their lunch hour which is scheduled the same time daily, and the other is before hours).
For users in this group they work 7am - 4pm with exception to a lunch from 11-2.
When we perform a lookup with inSchedule() we are getting a lot of false positives and I think it's because we are using schedules backwards from how they are typically used (we are putting excluded times rather than included times).
Can we get inSchedule to work this way so everything NOT in the schedule is considered in-schedule?