Hi guys
I’m trying to write some code, to go through my groups, and pull out each
group name, along with the values of two group custom fields… and I’m
stuck on how to get the custom field values
Here’s what I’ve got so far:
% use RT::Groups;
% my $Groups = new RT::Groups($session{‘CurrentUser’});
% $Groups->LimitToUserDefinedGroups();
% while(my $Group = $Groups->Next) {
<% $Group->Name %> |
Thanks!
Hi guys
I’m trying to write some code, to go through my groups, and pull out each
group name, along with the values of two group custom fields… and I’m
stuck on how to get the custom field values
Here’s what I’ve got so far:
% use RT::Groups;
% my $Groups = new RT::Groups($session{‘CurrentUser’});
% $Groups->LimitToUserDefinedGroups();
% while(my $Group = $Groups->Next) {
<% $Group->Name %>
See Record.pm, custom fields code now is generic and
find lib | xargs grep ‘^sub.*CustomField’
Thanks!
The rt-users Archives
Be sure to check out the RT Wiki at http://wiki.bestpractical.com
Buy your copy of our new book, RT Essentials, today!
Download a free sample chapter from http://rtbook.bestpractical.com
Best regards, Ruslan.
Thanks very much!
For future reference, I did it like this:
my $values = $Group->CustomFieldValues(‘my_custom_field_name’);
while (my $value = $values->Next) {
$content = $value->Content;
}
Hi guys
I’m trying to write some code, to go through my groups, and pull out
each group name, along with the values of two group custom fields…
and I’m stuck on how to get the custom field values
Here’s what I’ve got so far:
% use RT::Groups;
% my $Groups = new RT::Groups($session{‘CurrentUser’});
% $Groups->LimitToUserDefinedGroups();
% while(my $Group = $Groups->Next) {
<% $Group->Name %>
See Record.pm, custom fields code now is generic and find lib | xargs grep
‘^sub.*CustomField’
Thanks!
The rt-users Archives
Be sure to check out the RT Wiki at http://wiki.bestpractical.com
Buy your copy of our new book, RT Essentials, today!
Download a free sample chapter from http://rtbook.bestpractical.com
Best regards, Ruslan.