On 9 Apr 2009, at 7:04 pm, Nick Kartsioukas wrote:
> On Wed, 08 Apr 2009 17:36:08 -0700, "Nick Kartsioukas"
> said:
>> my $cf = RT::CustomField->new( $RT::SystemUser );
>> $cf->LoadByName( Name => 'createdbyemail' );
>> $self->TicketObj->AddCustomFieldValue( Field => $cf, Value =>
>> 'yes' );
Nick,
Try changing your code to add the custom field value like this:
$self->TicketObj->AddCustomFieldValue( Field => $cf, Value => 'yes',
RecordTransaction=>0 );
Also, make sure the values you are using are correct in terms of
case. "Yes" is not the same as "yes" and if the values yo
On Wed, 08 Apr 2009 17:36:08 -0700, "Nick Kartsioukas"
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-q
Okay, I'm doing something wrong, and I'm just getting over a bad cold so
my brain isn't all here. I'm trying to set a CustomField value from
within a scrip. I've watched the debug output and the scrip is run, but
the CustomField value is still null. CF is named 'createdbyemail', set
as a select