AW: [rt-users] How to get CurrentUser from a scrip written to a CF?

Ham MI-ID, Torsten Brumm torsten.brumm at Kuehne-Nagel.com
Tue Jan 22 01:46:07 EST 2008


Hi Ruslan,

Many thanks for your help. 

$self->Transaction->CreatorObj wont work for me, played around a little and got success with: $self->TransactionObj->CreatorObj->Name

But it was a good hint into the correct direction.

Thanks

Torsten

> Kühne + Nagel (AG & Co.) KG, Geschäftsleitung: Hans-Georg Brinkmann (Vors.), Uwe Bielang (Stellv.), Bruno Mang, Alfred Manke, Thorsten Meincke, Mark Reinhardt (Stellv.), Jens Wollesen, Rainer Wunn (Stellv.), Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persönlich haftende Gesellschaft: Kühne & Nagel A.G., Sitz: Contern/Luxemburg Geschäftsführender Verwaltungsrat: Klaus-Michael Kühne


-----Ursprüngliche Nachricht-----
> Von: ruslan.zakirov at gmail.com 
> [mailto:ruslan.zakirov at gmail.com] Im Auftrag von Ruslan Zakirov
> Gesendet: Montag, 21. Januar 2008 20:16
> An: Ham MI-ID, Torsten Brumm
> Cc: rt-users at bestpractical.com
> Betreff: Re: [rt-users] How to get CurrentUser from a scrip 
> written to a CF?
> 
> $self->Transaction->Creator - id
> $self->Transaction->CreatorObj - RT::User object
> 
> On Jan 21, 2008 10:06 PM, Ham MI-ID, Torsten Brumm 
> <torsten.brumm at kuehne-nagel.com> wrote:
> > Hi RT Users,
> >
> > Another small problem. I'm trying to write down the CurrentUser 
> > Information acting on a ticket to a CF.
> >
> > I tried this code:
> >
> > my $queue = $ticket->QueueObj;
> > my $actualuser = $session{CurrentUser}->Name; 
> > $self->TicketObj->AddCustomFieldValue(Field => 
> 'Assigned_by_SA', Value 
> > => $acutaluser, RecordTransaction => 0); return 1;
> >
> > Whichs ends up with a strange error message: %sessions not found...
> >
> > I can't find any good solution at the wiki yet.
> >
> > Thanks
> >
> > Torsten
> > Kuhne + Nagel (AG & Co.) KG, Geschaftsleitung: Hans-Georg Brinkmann 
> > (Vors.), Uwe Bielang (Stellv.), Bruno Mang, Alfred Manke, Thorsten 
> > Meincke, Mark Reinhardt (Stellv.), Jens Wollesen, Rainer Wunn 
> > (Stellv.), Sitz: Bremen, Registergericht: Bremen, HRA 21928, 
> > USt-IdNr.: DE 812773878, Personlich haftende Gesellschaft: Kuhne & 
> > Nagel A.G., Sitz: Contern/Luxemburg Geschaftsfuhrender 
> Verwaltungsrat: 
> > Klaus-Michael Kuhne
> >
> >
> >
> > _______________________________________________
> > 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
> >
> 
> 
> 
> --
> Best regards, Ruslan.
> 




More information about the rt-users mailing list