<html><body>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.<br><br>----- Original Message -----<br>From: Michael Lederman <mlederman@alvinailey.org><br>To: Bill Weaver <wweaver@amicus.com><br>Sent: Friday, November 10, 2006 10:22:57 AM GMT-0600 US/Central<br>Subject: RE: [rt-users] Newbie question regarding Custom Fields in Templates<br><br>
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Try $TicketObj->FirstCustomFieldValue()
instead. Its what I’ve had success with in my scrips. </span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Mike</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr align="center" size="2" width="100%">
</span></font></div>
<p class="MsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] <b><span style="font-weight: bold;">On Behalf Of </span></b>Bill Weaver<br>
<b><span style="font-weight: bold;">Sent:</span></b> Thursday, November 09, 2006
10:10 PM<br>
<b><span style="font-weight: bold;">To:</span></b>
rt-users@lists.bestpractical.com<br>
<b><span style="font-weight: bold;">Subject:</span></b> [rt-users] Newbie
question regarding Custom Fields in Templates</span></font></p>
</div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">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.<br>
<br>
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:<br>
<br>
To: {$Ticket->FirstCustomFieldValue('Email');}<br>
<br>
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!<br>
<br>
Thanks!<br>
<br>
-- <br>
"If there were no God, there would be no Atheists." - G. K. Chesterson<br>
<br>
Bill Weaver<br>
Director of Engineering<br>
Amicus, Inc.<br>
512-531-3463</span></font></p>
</div>
<br><br>-- <br>"If there were no God, there would be no Atheists." - G. K. Chesterson<br><br>Bill Weaver<br>Director of Engineering<br>Amicus, Inc.<br>512-531-3463<br></body></html>