cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
799
Views
0
Helpful
3
Replies

Month Check - Call Tree

Neal haas
Level 3
Level 3

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
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
Level 3
Level 3

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
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.

Thats too easy! thank you for the help!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: