[rt-users] FirstCustomFieldValue

Terri Bendl terri.bendl at ezpass.csc.paturnpike.com
Fri Aug 25 11:19:36 EDT 2006


{$Ticket->FirstCustomFieldValue('My Custom Field Name')}

yeilds nothing...

I am trying to return the value of a specific custom field in an email ... or set the priority based on the value of the custom field... 
Am I referencing the fiel incorrectly??
Do I need a patch??

We are running RT 3.0.8 rc1

Please help.
Thanks in advance, Terri

Here is some code that I have tried:

In a scrip:
On Correspond
User Defined
Prep Code:  Return 1;
Cleanup Code:
if $Ticket->FirstCustomFieldValue('Severity') eq "Urgent") {
$self->TicketObj->SetPriority( 100 );
	return 1;

{$Ticket->FirstCustomFieldValue('Severity')}
Template: Blank


In a template, that is emailed on Correspond, I simply have:
{$Ticket->FirstCustomFieldValue('Severity')}
   This send a blank email... no error.

Terri Bendl
Network Administrator
E-ZPass Help Desk
Ext 4316





More information about the rt-users mailing list