[rt-users] CustomFieldValues

Paul Tomblin ptomblin at xcski.com
Tue Aug 14 07:05:33 EDT 2012


On Tue, Aug 14, 2012 at 3:27 AM, Gergely Buday <gbuday at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120814/f0fdc06b/attachment.htm>


More information about the rt-users mailing list