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
--------
RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston March 5 & 6, 2012