cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Walkthrough Wednesdays
491
Views
0
Helpful
3
Replies
Neal haas
Participant

Month Check - Call Tree

We have a need to have our auto attendant tree change monthly, I know what the trees should be for every month. But for the life of me I cant figure out the best way to do this. I have no need for XML just a simple check against todays date.

Does anyone have an example for a monthly "rotational" Auto Attendant?        

Thank you         

1 ACCEPTED SOLUTION

Accepted Solutions
Anthony Holloway
Cisco Employee

I see you solved your own problem and that's good, but there is a cleaner way to conditionally flow through the script, rather than using 12 nested if statements.

Variables

Date today = D[now]

Script

Start

Switch int (today.month)

  January

    /* Do something here when we're in the month of January */

    ...

  February

    ...

  March

    ...

  April

    ...

  May

    ...

  ...

End

Here's a screenshot of the properties of the switch step:

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.

View solution in original post

3 REPLIES 3
Neal haas
Participant

OK I figured it out, set the current month. then did 12 embeded IF statements checking to see if the current month = the if statement. Not pretty but it workes

http://www.newsoverload.com/wp-content/uploads/2013/04/Main-CallTree.zip

Anthony Holloway
Cisco Employee

I see you solved your own problem and that's good, but there is a cleaner way to conditionally flow through the script, rather than using 12 nested if statements.

Variables

Date today = D[now]

Script

Start

Switch int (today.month)

  January

    /* Do something here when we're in the month of January */

    ...

  February

    ...

  March

    ...

  April

    ...

  May

    ...

  ...

End

Here's a screenshot of the properties of the switch step:

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.

View solution in original post

Thats too easy! thank you for the help!

Content for Community-Ad

Spotlight Awards 2021