Custom Fields in Templates

It’s probably just me having a bad Monday, but I can’t seem to get a
working syntax to extract a Custom Field value into a template, so that
we can personalise the reply.

The scrip on the wiki to extract them all works wonderfully, but we only
want two in the template.

{$Ticket->QueueObj->CustomFields(First_Name)}

just returns

RT::CustomFields=HASH(0x202f00c)

and attempts to get the value back are even less successful.

Anyone feel like helping me feel a little less dumb today?

Thanks

Rik

{$Ticket->QueueObj->CustomFields(First_Name)}
just returns
RT::CustomFields=HASH(0x202f00c)
and attempts to get the value back are even less successful.

Try
{$Ticket->QueueObj->CustomFields{First_Name}}
with curly braces.

bye,

-christian-

Christian Hammers WESTEND GmbH | Internet-Business-Provider
Technik CISCO Systems Partner - Authorized Reseller
Lï¿œtticher Straï¿œe 10 Tel 0241/701333-11
ch@westend.com D-52064 Aachen Fax 0241/911879

Does it help?
http://wiki.bestpractical.com/index.cgi?AddCustomFieldsValuesToMail

Richard Ellis wrote:

Hi Ruslan,

Thats close, but it extracts every single one and we only want two of
them. I’m in the process of editing the wiki to add the instructions I
have found that work.

Thanks

RikOn Mon, 2004-09-13 at 16:22, Ruslan U. Zakirov wrote:

Does it help?
http://wiki.bestpractical.com/index.cgi?AddCustomFieldsValuesToMail

Richard Ellis wrote:

It’s probably just me having a bad Monday, but I can’t seem to get a
working syntax to extract a Custom Field value into a template, so that
we can personalise the reply.

The scrip on the wiki to extract them all works wonderfully, but we only
want two in the template.

{$Ticket->QueueObj->CustomFields(First_Name)}

just returns

RT::CustomFields=HASH(0x202f00c)

and attempts to get the value back are even less successful.

Anyone feel like helping me feel a little less dumb today?

Thanks

Rik


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT wiki at http://wiki.bestpractical.com