Getting Queue Name via Perl

Hi Everyone,

Given the numeric Queue Id, what is the syntax for getting the Textual
Representation of the Queue Name?

Is it:

my $Queue;

my $qname

$Queue = RT::Queue($session(‘CurrentUser’));;

$qname = RT::Queue(i$Queue>Name);?

print “The name of the queue is: $qname\n”;

The above doesn’t work, any ideas would be most welcome.

Take care!

Nick

Nick Metrowsky

Consulting System Administrator

303-684-4785 Office

303-684-4100 Fax

nmetrowsky@digitalglobe.com mailto:nmetrowsky@digitalglobe.com

DigitalGlobe ®, An Imaging and Information Company

http://www.digitalglobe.com http://www.digitalglobe.com

Hi Everyone,

Given the numeric Queue Id, what is the syntax for getting the Textual
Representation of the Queue Name?

Is it:

my $Queue;

my $qname

$Queue = RT::Queue($session(‘CurrentUser’));;

$qname = RT::Queue(i$Queue>Name);?

print “The name of the queue is: $qname\n”;

my $queue_id = 10;
my $queue_obj = RT::Queue->new( $session{‘CurrentUser’} );
$queue_obj->Load( $queue_id );
my $queue_name = $queue_obj->Name;

The above doesn’t work, any ideas would be most welcome.

Take care!

Nick


Nick Metrowsky

Consulting System Administrator

303-684-4785 Office

303-684-4100 Fax

nmetrowsky@digitalglobe.com

DigitalGlobe ®, An Imaging and Information Company

http://www.digitalglobe.com



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.html

Best regards, Ruslan.

Hi Ruslan,

Thank you for writing. The code snippet you sent me work great!

Take care!

Nick

Nick Metrowsky

Consulting System Administrator

303-684-4785 Office

303-684-4100 Fax

nmetrowsky@digitalglobe.com mailto:nmetrowsky@digitalglobe.com

DigitalGlobe ®, An Imaging and Information Company

http://www.digitalglobe.com http://www.digitalglobe.com