Change routing rules programatically... HOW TO?
I have a situation where we have an on-call rotation that is modified once a week on mondays. We have a routing rule in place which routes all new tickets with a certain category tree to the person on call for that week. I have a vb script that is scheduled to run every monday morning to change the routing rule and send a notification email to users. I am changing the routing rule by calling the stored procedure (sp_updatewuci) in the Altiris database.
In doing this, I have found that the routing rule is changing as expected when you view the rule in the console BUT the new tickets are still routed to the previous on-call person. However, if I change the routing rule manually within the console itself, any new tickets are imediately routed to the correctly specified user. It seems that restarting my session after running the update scripts also solves the problem and the tickets are routed correctly, but I would like the stored procedure updates to take effect imediately.
Has anyone else implemented this type of automation? Any help would be appreciated.
Thank you.
Comments
In my Old Job
In my old job we just setup the on-call contact as an Email group. We then updated the email group weekly. In our case we used Exchange, so a simple script was setup to run on the desired schedule. That way we didn't have to mess with the rule itself. Worked flawlessly.
Would you like to reply?
Login or Register to post your comment.