On Tue, Aug 14, 2012 at 3:27 AM, Gergely Buday <span dir="ltr"><<a href="mailto:gbuday@gmail.com" target="_blank">gbuday@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi there,<br>
<br>
I was able to log a custom field value in a scrip:<br>
<br>
my $user=$self->TransactionObj->CreatorObj;<br>
<br>
my $cfvs = $user->CustomFieldValues('107');<br>
while(my $cfv = $cfvs->Next)  {<br>
  $RT::Logger->info("cfv->Content=" . $cfv->Content) if length $cfv->Content;<br>
}<br>
<br>
return 1;<br>
<br>
Beside ->Content, is there a field that gives back the number I set in<br>
the custom field definition? It would be more robust to handle.<br><br></blockquote><div><br></div><div>I just use $value = $ticket->FirstCustomFieldValue("field_name");</div><div> </div></div><div><br></div>
-- <br><a href="http://www.linkedin.com/in/paultomblin">http://www.linkedin.com/in/paultomblin</a><br><a href="http://careers.stackoverflow.com/ptomblin">http://careers.stackoverflow.com/ptomblin</a><br><br>