Hello all,<br><br>I am trying to write a custom action that pulls a custom value from a user and changes the new ticket's priority based on that value.<br><br>Below is the code I've written so far. It does successfully pull values (The ->Count method returns the correct number of values), but I can't GET the values out. ->Next just returns an empty variable. Any ideas?<br>
<br><span class="HcCDpe">Thanks,<br>~Sam<br><br>my $currentTicket = $self->TicketObj;<br><br>my $currentUser = new RT::CurrentUser;<br>$currentUser->LoadByEmail( $currentTicket->RequestorAddresses() );<br><br>$RT::Logger->debug("I found the user: " . $currentUser->Name);<br>
<br>my $CF_Obj = RT::CustomField->new($RT::SystemUser);<br>$CF_Obj->Load( '3' );<br><br>$RT::Logger->debug("Name of found CF Object is: " . $CF_Obj->Name() . " Created on " . $CF_Obj->Created);<br>
<br>my $startPriority = ($CF_Obj->ValuesForObject( $currentUser ));<br>$RT::Logger->debug( "There are " . $startPriority->Count . " objects");<br></span>