
ptomblin at xcski
Aug 14, 2012, 4:05 AM
Post #2 of 2
(168 views)
Permalink
|
On Tue, Aug 14, 2012 at 3:27 AM, Gergely Buday <gbuday [at] gmail> wrote: > 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
|