[rt-users] Scrip help needed

torsten.brumm torsten.brumm at googlemail.com
Thu Sep 24 12:19:44 EDT 2009


Hi Emmanuel,

will try it out tomorrow: done for today ;-)

Thanks for the hint.

Torsten

2009/9/24 Emmanuel Lacour <elacour at easter-eggs.com>

> On Thu, Sep 24, 2009 at 04:48:19PM +0200, Brumm, Torsten / Kuehne + Nagel /
> Ham MI-ID wrote:
> > Hi Ruslan, Raed,
> >
> > thanks for your support, it is working well now.
> >
> > Attached again the correct working scrip action, if someone else has a
> need for this:
> >
> > my $Actor = $self->TransactionObj->Creator;
> > my $user = RT::User->new($RT::SystemUser);
> > $user->Load($Actor);
> > my $Name = $user->Name;
> >
>
> FYI, you can use directly $self->TransactionObj->CreatorObj to get the
> user object.
>
> (CreatorObj does the same , i.e. load the user, but this will shorten
> you scrip ;))
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>



-- 
MFG

Torsten Brumm

http://www.brumm.me
http://www.elektrofeld.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20090924/8a2f5240/attachment.htm>


More information about the rt-users mailing list