<html>
<head>
<style>
 .sw_message P{margin:0px;padding:0px;}
 .sw_message {FONT-SIZE: 12pt;FONT-FAMILY:Tahoma,Arial,Helvetica,sans-serif;background:white;}
</style>
</head>
<body class="sw_message">
I'm trying to run the following code in my custom condition<br>#Don't bother running unless the transaction is a create.<br>return 0 unless $self->TransactionObj->Type eq "Create";<br><br>#Don't bother running unless the custom field Urgency is URGENT.<br>my $CustomFields = $ticket->QueueObj->TicketCustomFields();<br>while (my $CustomField = $CustomFields->Next()) {<br>   my $nam = $CustomField->Name;<br>   if $ticket->FirstCustomFieldValue($nam) eq "URGENT" {<br>    return 1<br>   }<br>   else<br>   {<br>    return 0<br>   }<br><br>But I get this error logged:<br>Scrip 12 IsApplicable failed: Global symbol "$ticket" requires explicit package name at (eval 1692) line 5.<br><br>I'm obviously not getting the difference between writing a scrip and writing perl code. I'm terribly weak on both. Can someone show me what I'm doing wrong please...<br><br><br>Kevin W. Gagel<br>Network Administrator<br>Local 5448<br>My blog:<br>http://mail.cnc.bc.ca/blogs/gagel<br>My shared files:<br>http://mail.cnc.bc.ca/users/gagel<br><br><br>
</body></html>