[rt-users] Newbie question regarding Custom Fields in Templates
Kenneth Crocker
KFCrocker at lbl.gov
Fri Nov 10 12:58:09 EST 2006
Bill,
We had something similar to that. What we discovered was that we were
trying to get more than 1 item per return. I believe the RT code allows
only 1 retrieval of 1 data item per return code. when we broke up the
returns to getting 1 item at a time, we were successful. I did not see
all of your code so I don't know that this is your problem, but our
retrieval of data in Templates works now. Hope this helps.
Kenn
LBNL
Bill Weaver wrote:
> 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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
More information about the rt-users
mailing list