Christopher,<br><br>I have a scrip that does the same thing and I ran into the same problem. This is how I resolved the issue:<br><br>1) Make sure your RT_SiteConfig.pm file has "TransactionBatch" turned on<br>2) Put all the code to change other fields, etc. in the "Prep Code" area<br>
3) Put the code to change Queues in the "Cleanup Code" area.<br>4) Created a second scrip (to notify the AdminCc) that uses the same Condition as the first, but name it so that it will execute after the first one.<br>
<br>I name all my Notification scrips with "Notify ..." but name all my other scrips (those that change CF's, ticket data, etc.) with a 1a thru 1d as a prefix. RT executes scrips in sequence by name.<br><br>
Hope this helps.<br><br><br>Kenn<br>LBNL<br><br><br><div class="gmail_quote">On Thu, Sep 8, 2011 at 9:46 AM, Christopher Lasater <span dir="ltr"><<a href="mailto:CLasater@taleo.com">CLasater@taleo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal" style="text-indent:.5in">
I have a queue scrip set up so that if a specific custom field is selected the ticket’s Queue will be changed to another Queue.  This seems to be working well, but when the ticket is created the Scrip for Notify AdminCC on create does not seem to be using the new Queue’s AdminCC.  I have checked the debug logs and the queue changing scrip runs before the Notify AdminCC scrip and after everything is done, the AdminCC’s are correct, its just that the change is not finalized till all the Scrips are run.  <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Is there a way to commit the change at the end of a scrip?  Or a way to get around this?<u></u><u></u></p><p class="MsoNormal">               Christopher Lasater<u></u><u></u></p>
</div></div><br>--------<br>
RT Training Sessions (<a href="http://bestpractical.com/services/training.html" target="_blank">http://bestpractical.com/services/training.html</a>)<br>
*  Chicago, IL, USA — September 26 & 27, 2011<br>
*  San Francisco, CA, USA — October 18 & 19, 2011<br>
*  Washington DC, USA — October 31 & November 1, 2011<br>
*  Melbourne VIC, Australia — November 28 & 29, 2011<br>
*  Barcelona, Spain — November 28 & 29, 2011<br></blockquote></div><br>