[rt-users] Scrip help needed

Emmanuel Lacour elacour at easter-eggs.com
Thu Sep 24 10:54:06 EDT 2009


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 ;))




More information about the rt-users mailing list