09-22-2022 09:40 AM
We are using UCCX 12.5 SU2
We have over 270 Branch locations for our enterprise and would like to provide a open or closed menu for each branch location. However, there are over 24 different variations of schedules across the numerous branches.
I am trying to find the best way to store this information and parse through it to provide the appropriate caller experience. We currently use an XML file to parse the called number and forward from a published number to a direct number assigned to phones at the appropriate branch location.
My initial though is to store the schedule for each branch in this XML and have the script parse to that information to apply open/closed. My current hurdle is deciphering how to get the script to compare the schedule of the branch to the current time of the call.
Solved! Go to Solution.
09-22-2022 10:27 AM
You can use the .getTime() function to find epoch time and then compare your open/closed time. I've seen a good bit of these questions before on here so everything you need should be already out in public. You're on the right track, that's how I would do it if I didn't have an API or DB to tap into.
david
09-22-2022 10:27 AM
You can use the .getTime() function to find epoch time and then compare your open/closed time. I've seen a good bit of these questions before on here so everything you need should be already out in public. You're on the right track, that's how I would do it if I didn't have an API or DB to tap into.
david
09-28-2022 08:30 AM
Appreciate the helpful direction David. I think I just about have it sorted. I ended up using that function and saving the hour and minute as separate variables, then comparing the open and close hour and minute if necessary. I'm using Javascript and the DO step to check for all the different cases in a single step.
Thank you.
-Patrick Mayer
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide