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: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to