cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
499
Views
0
Helpful
2
Replies

How can I create a sript using using XML file to check the holidays

GTC Hubgrade
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

Chris Deren
Hall of Fame
Hall of Fame

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.

View solution in original post

2 Replies 2

Chris Deren
Hall of Fame
Hall of Fame

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.

Bill Mungaven
Level 1
Level 1

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