[rt-users] accessing custom fields

Gergely Buday gbuday at gmail.com
Mon Aug 13 08:04:53 EDT 2012


>> I have created a custom field for a User. How can I access it from a
>> perl script? I have the CF id, that's clear, but some of the code I
>> have found had referred to some queue which I wonder about as I want a
>> core User custom field, not related to any queue.
>
> my $cf_value =
> $self->TransactionObj->CreatorObj->FirstCustomFieldValue('Client');
>
> I used above in OnCreate scrip. Hope that helps.

Seems fine, but what is the $self? I guess it is set by the general
scrip beginning but how can I create it from a standalone scrip_t_?

- Gergely



More information about the rt-users mailing list