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

ICM scripting question regarding date check

paul jurkowski
Level 1
Level 1

Just a quick question as I'm sure I can test this to see but I'm hoping that someone might know the answer.....

If I'm doing a date check in and IF node in either a routing or admin script, I don't think there would be a difference, would the following work? What I'm looking to do is on a specific date, change the call flow. So if on 1/10/2011, I need node A to flow to node C instead of A to B, it would automatically follow this path on the specified date.

date()>=date("11/26/2010") or would it be something like now()>=date("11/26/2010")

If I cant do a >=, a > would work also.

Thanks,

paul

3 Replies 3

paul jurkowski
Level 1
Level 1

Surprisingly, I had time to test this quickly, it looks like adding a node with now()>=date("11/26/2010") works, I tested with future, past and today's date, so I guess I answered my own question...unless anyone has any other feedback on this?

thanks

What you're doing will work, obviously.

But I will say that, when I worked in ICM training, we would always suggest to use the CallType Manager, and schedule different scripts for different days of the week, or time of day, vs. using lots of Date/Time/If nodes within the scripts themselves.

More, smaller scripts can be easier to manage vs. one large script with many branches.

YMMV.

Thanks, I'll keep that in mind. I was thinking that way but it's just an option off the main menu that they want to start playing on a certain date. If i could count on their (business) information to be reliable and make a decision, it would be a different story, but having in the ICM script I can quickly go and change something  when they change their mind again.  All other scheduling is handled by admin scripts.