[rt-users] Custom Fields in Email

Todd Chapman rt at chaka.net
Mon Nov 29 13:50:12 EST 2004


Try changing it to:

Customer: {$Ticket->FirstCustomFieldValue('CompanyName')}

-Todd

On Mon, Nov 29, 2004 at 11:13:16AM -0800, Stevo wrote:
> Hey Todd,
> 
> Thanks for the info on this, but I don't think I'm getting it!  The Custom 
> Field type is a "Select one value" type and the name is CompanyName.
> 
> I tried to put the following in my template and it gave the error "Can't 
> call method "FirstCustomFieldValue" on an undefined value":
> 
> Customer: {$TicketObj->FirstCustomFieldValue('CompanyName')}
> 
> The template example at http://wiki.bestpractical.com/index.cgi?Template 
> doesn't really help me much - any chance you could throw another pointer my 
> way!
> 
> Thanks a bunch.
> 
> -Steve
> 
> 
> ----- Original Message ----- 
> From: "Todd Chapman" <rt at chaka.net>
> To: "Stevo" <checkpoint at ozbergs.com>
> Cc: <rt-users at lists.bestpractical.com>
> Sent: Wednesday, November 24, 2004 1:43 PM
> Subject: Re: [rt-users] Custom Fields in Email
> 
> 
> >Assuming type single:
> >
> >$TicketObj->FirstCustomFieldValue('MyField')
> >
> >On Wed, Nov 24, 2004 at 12:12:03PM -0800, Stevo wrote:
> >>Hey All,
> >>
> >>I'd like to add a custom field to be included in the admin correspondence 
> >>template and was wondering if that was possible?  I have a Customer Name 
> >>custom field and would like that to be included as part of the email that 
> >>gets sent out with the admin correspondence.
> >>
> >>Anyone have any ideas on this?!
> >>
> >>Thanks
> >>
> >>-Stevo
> >
> >>_______________________________________________
> >>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> >>
> >>Be sure to check out the RT wiki at http://wiki.bestpractical.com 



More information about the rt-users mailing list