[rt-users] Get value of a transaction custom field
Constant DAIX
cdx at kereval.com
Fri Dec 9 08:56:39 EST 2011
Hi everybody,
Could someone tell me how to get the value of a transaction custom field ?
I tried a lot of functions but I can't get this value. I just can have the name and the description of this custom field, the content, subject, headers of the reply associated to the custom field.
Code used :
my $Value = 1;
my $Transactions = $self->TicketObj->Transactions;
my $TCustomFields = $Transactions->First->CustomFields;
while (my $TCustomField = $TCustomFields->Next())
{
my $nam = $TCustomField->Name;
if ($nam eq 'CFName') {
$Value = $Transactions->First->FirstCustomFieldValue($nam);
}
else {
$Value = 55;
}
}
$RT::Logger->info( "Value is :" . $Value);
--> This always returns ' '.
Thanks for your help.
Regards,
Constant
More information about the rt-users
mailing list