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

2015-05-11 Thread Bob Shaker
use RT;
use RT::User;
use RT::Ticket;

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

From: rt-users [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of 
ABD EL MALEK BOUBARNOUS
Sent: Saturday, May 9, 2015 7:59 AM
To: rt-users@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.


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

2015-05-09 Thread ABD EL MALEK BOUBARNOUS
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