[rt-users] Set CustomField from scrip action SOLVED

Nick Kartsioukas change+lists.rt at nightwind.net
Thu Apr 9 14:04:04 EDT 2009


On Wed, 08 Apr 2009 17:36:08 -0700, "Nick Kartsioukas"
<change+lists.rt at nightwind.net> said:
> my $cf = RT::CustomField->new( $RT::SystemUser );
> $cf->LoadByName( Name => 'createdbyemail' );
> $self->TicketObj->AddCustomFieldValue( Field => $cf, Value => 'yes' );
> return 1;

Got it.  Should be double-quotes instead of single-quotes for the value
to set, so:
$self->TicketObj->AddCustomFieldValue( Field => $cf, Value => "yes" );



More information about the rt-users mailing list