Re: [rt-users] Set CustomField from scrip action SOLVED

2009-04-23 Thread Tim Cutts
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' );

Re: [rt-users] Set CustomField from scrip action

2009-04-09 Thread Ken Crocker
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

Re: [rt-users] Set CustomField from scrip action SOLVED

2009-04-09 Thread Nick Kartsioukas
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

[rt-users] Set CustomField from scrip action

2009-04-08 Thread Nick Kartsioukas
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