[rt-users] Accessing Transactional Custom Fields From a Scrip
Christopher Snell
chris.snell at gmail.com
Wed Aug 10 01:05:04 EDT 2005
Hi List,
Does anybody know how to access the value of a transactional custom
field from a script? I have some per-transaction custom fields and I
want to be able to access its contents, if the user chooses to fill it
in when updating a ticket. However, when I try to access the field's
value, I end up with the value for the per-ticket custom field
instead. Here's my code:
Condition: On Transaction
Action: User Defined
Template: Global template: Blank
Stage: TransactionCreate
Custom action preparation code:
return 1;
Custom action cleanup code:
my $CFName = 'Billable (min)';
my $cfvalue = $self->TicketObj->FirstCustomFieldValue( $CFName );
open(DEBUGFILE,">>/tmp/debugcf");
print DEBUGFILE "$CFName :: $cfvalue \n";
close(DEBUGFILE);
What am I doing wrong here? Can anybody offer any tips? Tried the
wiki to no avail. :(
Chris
More information about the rt-users
mailing list