cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
406
Views
0
Helpful
3
Replies
Highlighted
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         

Everyone's tags (6)
1 ACCEPTED SOLUTION

Accepted Solutions
VIP Advisor

Re: Month Check - Call Tree

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.


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
Participant

Month Check - Call Tree

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

VIP Advisor

Re: Month Check - Call Tree

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.


Anthony Holloway

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

View solution in original post

Participant

Re: Month Check - Call Tree

Thats too easy! thank you for the help!

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards
This widget could not be displayed.