10-31-2016 04:32 AM - edited 03-14-2019 04:43 PM
Good morning,
I need some help to do a script using a xml holiday file. I have a sript, that i chek the days of the week, and if it is holiday it goes to a Prompt, if it is not it goes to a call redirect. But it is not working, i dont know why.
Can annyone help me?
Xml file
Solved! Go to Solution.
10-31-2016 06:14 AM
You can find HolidayDoc.aef emergency check script that uses XML file here:
Cisco Unified Contact Center Express Script Repository 9.0(2)
Either compare it to your script or use it instead.
10-31-2016 06:14 AM
You can find HolidayDoc.aef emergency check script that uses XML file here:
Cisco Unified Contact Center Express Script Repository 9.0(2)
Either compare it to your script or use it instead.
10-31-2016 06:31 AM
It looks like you're comparing holidayClosed which looks to be "true" (Set holidayClosed = todaysDate) to todaysDate which is "31-10" and the 2 are not the same (Set holidayClosed=closedForHoliday which is "true" per the XML file Target tag assuming you're running this script today) then you're comparing "true" to "31-10." Instead of using IF (holidayClosed == todaysDate) Then... consider using IF (holidayClosed) Then... or IF (holidayClosed == true) Then... instead.
You can try doing a reactive debug and see the results of your various variables and this may give you some insight into what's happening.
Bill
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