<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1561" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=604433816-10112006>This a copy and paste from what works for me in my
templates:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=604433816-10112006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=604433816-10112006>{$Ticket->FirstCustomFieldValue('Application')}</SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] <B>On Behalf Of </B>Bill
Weaver<BR><B>Sent:</B> Friday, November 10, 2006 11:37 AM<BR><B>To:</B> Michael
Lederman; rt-users<BR><B>Subject:</B> Re: [rt-users] Newbie question regarding
Custom Fields in Templates<BR></FONT><BR></DIV>
<DIV></DIV>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-face {
font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
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 face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Try
$TicketObj->FirstCustomFieldValue() instead. Its what I’ve had success
with in my scrips. </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Mike</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></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 width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">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>