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

Ham MI-ID, Torsten Brumm torsten.brumm at Kuehne-Nagel.com
Mon Jan 21 14:06:14 EST 2008


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






More information about the rt-users mailing list