Using User Custom Fields

Hi Folks,
Does anyone have a code snippet that would retrieve a user custom
field value, given an RT::User object? E.g., running through the
AdminCc list for a ticket get a custom field value for each user such
as Role in a custom action or template? I’ve got the custom field
defined for users in the database, and can see the values; just need
to extract them now.
Regards,
-Chuck

I think code is (untested):
$user_obj->FirstCustomFieldValue(‘cf_name’);On 3/3/06, Chuck Boeheim boeheim@slac.stanford.edu wrote:

Hi Folks,
Does anyone have a code snippet that would retrieve a user custom
field value, given an RT::User object? E.g., running through the
AdminCc list for a ticket get a custom field value for each user such
as Role in a custom action or template? I’ve got the custom field
defined for users in the database, and can see the values; just need
to extract them now.
Regards,
-Chuck


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

We’re hiring! Come hack Perl for Best Practical: http://bestpractical.com/about/jobs.htm

Best regards, Ruslan.