----- Original Message -----
From: Michael Lederman <[EMAIL PROTECTED]>
To: Bill Weaver <[EMAIL PROTECTED]>
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:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bill Weaver
Sent: Thursday, November 09, 2006
10:10 PM
To:
[email protected]
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
_______________________________________________ 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
