<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Rick Russell wrote:
<blockquote cite="mid43559A6B.7090604@rice.edu" type="cite">
<pre wrap="">
Howard Jones wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> my $cf = $tick->QueueObj->CustomField('OutageSource');
</pre>
</blockquote>
<pre wrap=""><!---->
I think this is where you're going south. Custom Fields are independent
objects, not actually part of the Queue object.
I got this out of the Wiki (I've replaced some of the variable names to
match your code):
my $QueueObj = $self->TicketObj->QueueObj;
my $cf = RT::CustomField->new( $QueueObj->CurrentUser );
$cf->LoadByNameAndQueue( Name => 'OutageSource', Queue => 0 );
# for global CFs: Queue => 0
# for queue CFs: Queue => QueueObj->id
my( $st, $msg ) = $self->TicketObj->AddCustomFieldValue(
Field => $cf->id,
Value => $requestor,
RecordTransaction => 1 );
</pre>
</blockquote>
Aha! That did the trick. Thanks Rick.<br>
<br>
</body>
</html>