[rt-users] Get the value of the current user organization in a scrip

Bob Shaker rshaker at ARDENCOMPANIES.COM
Mon May 11 11:16:06 EDT 2015


use RT;
use RT::User;
use RT::Ticket;

my $user = $self->TransactionObj->TicketObj->CreatorObj;
my $userDept = $user->Organization;

From: rt-users [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of ABD EL MALEK BOUBARNOUS
Sent: Saturday, May 9, 2015 7:59 AM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] Get the value of the current user organization in a scrip

Hi,

I'm trying to write a custom action in a scrip and I need the portion of code to get the value of  the current user's organization field,

Anyone can help me please ?

Thanks in advance

________________________________

ARDEN
A Global Company
Celebrating over 50 years of making your life more comfortable!

This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message.

This OUTBOUND E-mail and Document(s) has been scanned by an Antivirus Server.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150511/7abb3eeb/attachment.htm>


More information about the rt-users mailing list