Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Script Help

I need some help with a script for my company. My company will be closing early on Christmas Eve and closed all day on Christmas. I have the Christmas day in my dates.xml and have a subflow calling the Holdiday.aef script. What I am thinking of doing is adding another IF statement and if True do a time of day option that routes to the same holiday prompt as used in the Holiday sublfow. My problem is I don't know how to add If date = 12,24,2007.

Anyone know how to do this or know of a better way?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Bronze

Re: Script Help

this should work for the IF,

(dateDay.month == 12) && ( dateDay.dom == 24) && ( dateDay.year ==2007)

dateDay is your date variable, it need to be a Date type variable

Whats wrong with adding 12/24/2007 to your xml file?

3 REPLIES
Bronze

Re: Script Help

this should work for the IF,

(dateDay.month == 12) && ( dateDay.dom == 24) && ( dateDay.year ==2007)

dateDay is your date variable, it need to be a Date type variable

Whats wrong with adding 12/24/2007 to your xml file?

New Member

Re: Script Help

Thanks I will test this today.

If I add 12/24 to the XML file it is only for the full day where I need this to enable at 1:00PM on 12/24 and I'll use the XML file for 12/25 which we are closed all day. Please let me know if there is a way I can use the XML file and enable it to work only for a particular day starting a particular time.

Thanks!

New Member

Re: Script Help

Hi there.

Try to use the "Time of the Day" Step.

Create a connection with the time of the day you want to check after you're sure that it's the day you want.

Andrei.

126
Views
0
Helpful
3
Replies
CreatePlease to create content