Custom Field values - included in Autpo-reply Template

Hi,

I have been trying out numerous suggestions on how to code to include values from Custom Fields into an Auto-reply email. The Custom Field is “First Name” and I want the first name entered on the ticket, to appear after the word “Hello” on the Auto-reply email. The below is my latest attempt (based on user feedback on other threads) however, this doesn’t work either as the email just doesn’t send (NB; if I take the line of code out altogether then the email does send).

Hello {my $First Name = $Ticket->FirstCustomFieldValue(‘First Name’)}

I’m not a programmer, so apologies if this problem sounds a bit 101, however I could really use some pointers.

Kind regards

Jo

Joanne Keown, MBusAdmin(Mgt), PNA
IS Business Analyst
Colorado Group Ltd
100 Melbourne Street
South Brisbane QLD 4101
Ph: +61 7 3877 3399
Mobile: 0402 697 351
Fax: +61 7 3877 3289
Email: joanne.keown@coloradogroup.com.aumailto:joanne.keown@coloradogroup.com.au

Join FUSION now and get special member rewards at 5 of Australia’s leading fashion brands.
www.fusioncard.com.au<file:///C:\Documents%20and%20Settings\dmarjoribanks\Application%20Data\Microsoft\Signatures\www.fusioncard.com.au>

This email and any attachments are confidential and intended for use by the addressee only. If you are not the intended recipient, please delete it and destroy any copies.

No part of this email may be reproduced, adapted or transmitted without the written permission of the owner of the copyright or other intellectual property in it.

COLORADO group does not accept liability for loss or damage caused by this email, for example by a computer virus or arising from data corruption, delay, interruption, unauthorised access or any other thing.

Jo,

How are you populating the custom field? The likely problem is that the
custom field is not populated before the autoreply is processed.

-ToddOn Wed, Dec 1, 2010 at 12:31 AM, Joanne Keown < Joanne.Keown@coloradogroup.com.au> wrote:

Hi,

I have been trying out numerous suggestions on how to code to include
values from Custom Fields into an Auto-reply email. The Custom Field is “
First Name” and I want the first name entered on the ticket, to appear
after the word “Hello” on the Auto-reply email. The below is my latest
attempt (based on user feedback on other threads) however, this doesn’t work
either as the email just doesn’t send (NB; if I take the line of code
out altogether then the email does send).

Hello {my $First Name = $Ticket->FirstCustomFieldValue(‘First Name’)}

I’m not a programmer, so apologies if this problem sounds a bit 101,
however I could really use some pointers.

Kind regards

Jo

Joanne Keown*,* MBusAdmin(Mgt), PNA

IS Business Analyst

*Colorado Group Ltd
*100 Melbourne Street
South Brisbane QLD 4101

Ph: +61 7 3877 3399
Mobile: 0402 697 351

Fax: +61 7 3877 3289

Email: joanne.keown@coloradogroup.com.au

*Join FUSION now and get special member rewards at 5 of *Australia’s
leading fashion brands.

www.fusioncard.com.au**


This email and any attachments are confidential and intended for use by the addressee only. If you are not the intended recipient, please delete it and destroy any copies.

No part of this email may be reproduced, adapted or transmitted without the written permission of the owner of the copyright or other intellectual property in it.

COLORADO group does not accept liability for loss or damage caused by this email, for example by a computer virus or arising from data corruption, delay, interruption, unauthorised access or any other thing.


Hi Jo,On 11/30/2010 9:31 PM, Joanne Keown wrote:

Hi,

I have been trying out numerous suggestions on how to code to include values from Custom Fields into an Auto-reply email. The Custom Field is “First Name” and I want the first name entered on the ticket, to appear after the word “Hello” on the Auto-reply email. The below is my latest attempt (based on user feedback on other threads) however, this doesn’t work either as the email just doesn’t send (NB; if I take the line of code out altogether then the email does send).

Hello {my $First Name = $Ticket->FirstCustomFieldValue(‘First Name’)}

I’m not a programmer, so apologies if this problem sounds a bit 101, however I could really use some pointers.

Kind regards

Jo

If the line you included above is actually from your template, then the
problem is the “my $First Name =” part. Perl will see “$First” as a
variable name and won’t know what to do with “Name”. Try replacing “my
$First Name =” with “my $First_Name =”. The underscore makes "Name"
part of “$First”. I’m not sure whether spaces are allowed in custom
field names.

Regards,
Gene

Hi Jo,

Hi,

I have been trying out numerous suggestions on how to code to include values from Custom Fields into an Auto-reply email. The Custom Field is “First Name” and I want the first name entered on the ticket, to appear after the word “Hello” on the Auto-reply email. The below is my latest attempt (based on user feedback on other threads) however, this doesn’t work either as the email just doesn’t send (NB; if I take the line of code out altogether then the email does send).

Hello {my $First Name = $Ticket->FirstCustomFieldValue(‘First Name’)}

I’m not a programmer, so apologies if this problem sounds a bit 101, however I could really use some pointers.

Kind regards

Jo

If the line you included above is actually from your template, then
the problem is the “my $First Name =” part. Perl will see "$First"
as a variable name and won’t know what to do with “Name”. Try
replacing “my $First Name =” with “my $First_Name =”. The
underscore makes “Name” part of “$First”. I’m not sure whether
spaces are allowed in custom field names.

Spaces in custom fields are perfectly valid.

Jo didn’t seem to want to assign to a variable at all, so
Hello { $Ticket->FirstCustomFieldValue(‘First Name’) }
is likely to be closer to what she wants, since it will print
the content of the CF.

-kevin

Awesome pickup!! Thanks everybody :slight_smile:

Jo

Joanne Keown, MBusAdmin(Mgt), PNA
IS Business Analyst
Colorado Group Ltd
100 Melbourne Street
South Brisbane QLD 4101
Ph: +61 7 3877 3399
Mobile: 0402 697 351
Fax: +61 7 3877 3289
Email: joanne.keown@coloradogroup.com.au
Join FUSION now and get special member rewards at 5 of Australia’s leading fashion brands.

www.fusioncard.com.au-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin Falcone
Sent: Thursday, 2 December 2010 3:07 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Custom Field values - included in Autpo-reply Template

On Wed, Dec 01, 2010 at 08:29:03AM -0800, Gene LeDuc wrote:

Hi Jo,

On 11/30/2010 9:31 PM, Joanne Keown wrote:

Hi,

I have been trying out numerous suggestions on how to code to include values from Custom Fields into an Auto-reply email. The Custom Field is “First Name” and I want the first name entered on the ticket, to appear after the word “Hello” on the Auto-reply email. The below is my latest attempt (based on user feedback on other threads) however, this doesn’t work either as the email just doesn’t send (NB; if I take the line of code out altogether then the email does send).

Hello {my $First Name = $Ticket->FirstCustomFieldValue(‘First Name’)}

I’m not a programmer, so apologies if this problem sounds a bit 101, however I could really use some pointers.

Kind regards

Jo

If the line you included above is actually from your template, then
the problem is the “my $First Name =” part. Perl will see "$First"
as a variable name and won’t know what to do with “Name”. Try
replacing “my $First Name =” with “my $First_Name =”. The
underscore makes “Name” part of “$First”. I’m not sure whether
spaces are allowed in custom field names.

Spaces in custom fields are perfectly valid.

Jo didn’t seem to want to assign to a variable at all, so
Hello { $Ticket->FirstCustomFieldValue(‘First Name’) }
is likely to be closer to what she wants, since it will print
the content of the CF.

-kevin