12-02-2016 10:08 AM - edited 03-15-2019 06:25 AM
Hi Guys
I am looking to setup a UCCX script similar to the popular holiday check script. (Maybe not even required)
I am comfortable with specific dates using .xml files with the holidaycheck script
However, what I am trying to achieve is to specify a date range.
Simple example: Between 4th July - 30th September, I want to transfer the calls to A, between 1st October to 31st January, I want to transfer the call to B and so on. Also bearing in mind the dates may not necessarily be from beginning to end of month.
Can I configure "date from and to" and/or if not at all possible, can I please get some advice?
Look forward to your assistance
Many Thanks
Jide
Solved! Go to Solution.
12-03-2016 03:01 AM
Hi Jide
I have a script that does just this but the dates are hard coded rather than stored in an XML file.
I call this script as a subflow as shown below.
If basically uses D(now) to write the date to a variable then uses multiple If statements to check whether the date falls within a range.
I originally wrote this because the customer wanted specific holiday messages - e.g Easter 2013 - rather than generic ones.
I guess you could use the techniques above in conjunction with the XML logic in the script you posted to get an XML driven solution.
Hope this helps
James
12-03-2016 03:01 AM
Hi Jide
I have a script that does just this but the dates are hard coded rather than stored in an XML file.
I call this script as a subflow as shown below.
If basically uses D(now) to write the date to a variable then uses multiple If statements to check whether the date falls within a range.
I originally wrote this because the customer wanted specific holiday messages - e.g Easter 2013 - rather than generic ones.
I guess you could use the techniques above in conjunction with the XML logic in the script you posted to get an XML driven solution.
Hope this helps
James
12-05-2016 02:52 AM
Many Thanks James
I get the idea and seems to work well for me
08-28-2018 03:20 AM
James,
Thank you for sharing this piece of the script. I'm very new to CCX Scripting. I see you have the IF statement built out with the date ranges, do you have the steps on how to create the IF statement properly? I attempted but failed with syntax errors.
Thank you for the knowledge
Courtney
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