FirstCustomFieldValue

{$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

Is the FirstCustomFieldValue method something which can be applied all objects
(users, tickets, transactions, etc)?

I would like to build two hashes based on a CF value for each user and just need
to know if that method does the same thing as I’ve already used it for on ticket
objects.

Mathew

Can anyone help me with this? I need to be able to separate users based
on the value set in a custom field attached to Users but
FirstCustomFieldValue doesn’t work on user objects. At least, that’s
what it’s telling me.

Mathew

Mathew Snyder wrote:

I think it’s working as it should. Prove with example that it doesn’t
work or most probably developers continue ignoring this thread.On 4/2/07, Mathew theillien@yahoo.com wrote:

Can anyone help me with this? I need to be able to separate users based
on the value set in a custom field attached to Users but
FirstCustomFieldValue doesn’t work on user objects. At least, that’s
what it’s telling me.

Mathew

Mathew Snyder wrote:

Is the FirstCustomFieldValue method something which can be applied all objects
(users, tickets, transactions, etc)?

I would like to build two hashes based on a CF value for each user and just need
to know if that method does the same thing as I’ve already used it for on ticket
objects.

Mathew


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Best regards, Ruslan.

I can understand that it isn’t working as it should. Assuming that by
"working as it should" you mean not able to be used on User objects.
That being the case, I would like help figuring out how to get the value
from a “user” CF.

Mathew

Ruslan Zakirov wrote: