[rt-users] Newbie question regarding Custom Fields in Templates

Bill Weaver wweaver at amicus.com
Fri Nov 10 11:36:46 EST 2006


No, that didn't work either. In fact, it fails to generate a message at all when I put that in the template so obviously that object isn't defined inside a template. At least with $Ticket a message generates, I just can't get to the data I need. I'm doing something wrong in my reference, I just don't know what it is. 

----- Original Message ----- 
From: Michael Lederman <mlederman at alvinailey.org> 
To: Bill Weaver <wweaver at amicus.com> 
Sent: Friday, November 10, 2006 10:22:57 AM GMT-0600 US/Central 
Subject: RE: [rt-users] Newbie question regarding Custom Fields in Templates 




Try $TicketObj->FirstCustomFieldValue() instead. Its what I’ve had success with in my scrips. 



Mike 






From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Bill Weaver 
Sent: Thursday, November 09, 2006 10:10 PM 
To: rt-users at lists.bestpractical.com 
Subject: [rt-users] Newbie question regarding Custom Fields in Templates 



I spent the day in the RT Essentials book and on the Wiki trying to figure out how to create a custom Template that will autoreply. These autoreplies are in response to a request for information in a sales queue. I've got everything working except that I can't seem to get to a custom value I need into the Template. 

Basically we have a webform that emails the data to RT. I was able to scrape the email and get the values into the custom fields (using ExtractCustomFieldValues) - one of those values is the email address they want to be contacted at. When I try to reference that within a Template like this: 

To: {$Ticket->FirstCustomFieldValue('Email');} 

It returns undef. I know the value is there in the ticket - I can see it on the screen. The field is called Email. So what am I doing wrong? I've researched what I could and fought with it all day - I need some help please! 

Thanks! 

-- 
"If there were no God, there would be no Atheists." - G. K. Chesterson 

Bill Weaver 
Director of Engineering 
Amicus, Inc. 
512-531-3463 

-- 
"If there were no God, there would be no Atheists." - G. K. Chesterson 

Bill Weaver 
Director of Engineering 
Amicus, Inc. 
512-531-3463 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20061110/bc2df39c/attachment.htm>


More information about the rt-users mailing list