I have setup the Queue with a custom field called 'Country' and created a queue with country populated with 'United States'.
Then, I am using the following code snippet to select this Queue based on the custom Country field value in Queue. $cfCountryQ = RT::CustomField->new(RT->SystemUser); $cfCountryQ->LoadByName(Name => 'Country'); $splQueues = RT::Queues->new(RT->SystemUser); $splQueues->LimitCustomField (CustomField => $cfCountryQ->id, Value => 'United States'); while (my $splQueue = $splQueues->Next) { print ("inside the loop\n"); print ($splQueue->Name); } The control does not go inside the loop. I am wondering what is that I am doing wrong here.. ~ ~ ~ ~ ~
-------- RT Training Sessions (http://bestpractical.com/services/training.html) * Washington DC, USA October 31 & November 1, 2011 * Barcelona, Spain November 28 & 29, 2011