Hi Emmanuel, The error message is getting better ;-) Jan 21 13:53:30 bruchtal-www3 RT: Template parsing error: Can't locate object method "First" via package "Shipment" (perhaps you forgot to load "Shipment"?) at template line 1. Stack: [template:1]
This is the correct Template, without any replacements: To: {$Ticket->FirstCustomFieldValue('Occured in Module')->First->Description;} Subject: {$Ticket->Subject} A new ticket has been created in queue HAM.WEBDEV.KNLOGIN.SUPPORT. {$RT::WebURL}Ticket/Display.html?id={$Ticket->id} ------------- {$Transaction->Content()} Created is the Ticket with the CF: Occured in Module set to Shipment. 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: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag > von Emmanuel Lacour > Gesendet: Montag, 21. Januar 2008 14:47 > An: rt-users@lists.bestpractical.com > Betreff: Re: [rt-users] Simple Question: CustomField of Type > SelectOneValue /How to get the Description from a Scrip/Template? > > On Mon, Jan 21, 2008 at 02:38:01PM +0100, Ham MI-ID, Torsten > Brumm wrote: > > Hi RT Users, > > Just a simple questions (hopefully). Inside a scrip i can > get the CF > > Value with: $Ticket->FirstCustomFieldValue('CFNAME'). If i > need to the > > the corresponding Description to this value, can i get this with: > > $Ticket->FirstCustomFieldValue('CFNAME')->Description ?!? > > > > Should be: > > $Ticket->CustomFieldValues('CFNAME')->First->Description > > I think ... > > -- > Emmanuel Lacour ------------------------------------ Easter-eggs > 44-46 rue de l'Ouest - 75014 Paris - France - Métro Gaité > Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 41 35 00 76 > mailto:[EMAIL PROTECTED] - http://www.easter-eggs.com > _______________________________________________ > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users > > Community help: http://wiki.bestpractical.com Commercial > support: [EMAIL PROTECTED] > > > Discover RT's hidden secrets with RT Essentials from O'Reilly Media. > Buy a copy at http://rtbook.bestpractical.com > _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com