CustomFieldValues

Hi there,

I was able to log a custom field value in a scrip:

my $user=$self->TransactionObj->CreatorObj;

my $cfvs = $user->CustomFieldValues(‘107’);
while(my $cfv = $cfvs->Next) {
$RT::Logger->info(“cfv->Content=” . $cfv->Content) if length $cfv->Content;
}

return 1;

Beside ->Content, is there a field that gives back the number I set in
the custom field definition? It would be more robust to handle.

  • Gergely

Hi there,

I was able to log a custom field value in a scrip:

my $user=$self->TransactionObj->CreatorObj;

my $cfvs = $user->CustomFieldValues(‘107’);
while(my $cfv = $cfvs->Next) {
$RT::Logger->info(“cfv->Content=” . $cfv->Content) if length
$cfv->Content;
}

return 1;

Beside ->Content, is there a field that gives back the number I set in
the custom field definition? It would be more robust to handle.

I just use $value = $ticket->FirstCustomFieldValue(“field_name”);

http://www.linkedin.com/in/paultomblin
http://careers.stackoverflow.com/ptomblin