<div>I've throughly searched the Wiki and the old archives and can not come up with an answer to this question, so perhaps some of you may be able to help:</div>
<div> </div>
<div>I would like to get the CustomField Named "DefaultQueue" that I created for Users in the SelectQueue file so that when the Queue list appears, it would default to a certain Queue for each user. Here is the code that I have come up with that should work, but I keep
</div>
<div>getting undefines and what-not. Perhaps you can help?</div>
<div> </div>
<div>% my $user = new RT::User($session{'CurrentUser'});<br>% my $cfs = $user->CustomFields();<br>% while($cf = $cfs->Next) {<br>% if ($cf->Name eq 'DefaultQueue') {<br>% my $cfvalues = $user->CustomFieldValues($cf->Id);
<br>% while(my $cfvalue = $cfvalues->Next) {<br>% print $cfvalue->Content; }}}</div>
<div> </div>
<div>Obviously the last print line would be changed, but I'm using it just for testing purposes right now until it's working.</div>
<div> </div>
<div>Let me know if you need any more details. I'll also keep looking around for an answer, but do appreciate any and all help.</div>
<div> </div>
<div>Thanks!</div>
<div> </div>
<div>-rob<br> </div>