04-11-2013 02:13 PM - edited 03-14-2019 11:32 AM
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
Solved! Go to Solution.
04-26-2013 08:33 AM
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.
04-22-2013 08:01 AM
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
04-26-2013 08:33 AM
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.
04-30-2013 08:32 AM
Thats too easy! thank you for the help!
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: