[rt-users] How to get Custom Field's description which setted by ExternalValues subroutine
Chrilly Cheng
chrilde at gmail.com
Tue May 21 08:54:13 EDT 2013
Hi All,
I've got a problem with the Custom Field description issue. I created a
custom field named Contact, and when a new ticket is created, I use scrip
to add this Contact user to Requestor list.
I remember that when we set the ExternalValues with code below, we would
pass a description to RT
sub ExternalValues {
..........
..........
push @res, {
name => $element->{'cont_name'},
description => $element->{'cont_email'},
sortorder => $i++,
};
..........
}
So i want to use this "description" value to create user or add to mail
list. Can anyone tell me how to get it?
I used code as listed below, but what i got is just the Description value
of this Custom Field, NOT the description of the custom field value I
passed in config file.
my $CF = new RT::CustomField($RT::SystemUser);
$CF->LoadByName( Queue => $ticket->QueueObj->id, Name => $CFName );
$Email = $CF->Description();
Any suggestions would be help, thanks a lot.
--
*Br*
*Vodar*
*It's not where you start -- it's where you finish that count.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130521/a6d1210c/attachment.htm>
More information about the rt-users
mailing list