<div dir="ltr">Hi again, sending issues on Sunday usually get losts, I am resending my issue below, kindly asks for assistance here :)<br><br><div class="gmail_quote">On Sun, Nov 9, 2008 at 7:29 PM, Monti gmail <span dir="ltr"><<a href="mailto:monti.mail@gmail.com">monti.mail@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Hi all,<br><br>I have spent many hours today to find a solution to my problem, I will VERY much appriciate any help here.<br>
<br>I have a CF Applies to "Ticket Transaction" called "SendResolutionMail" which is select one value type.<br>
I can't get the CF Value out of it if it applies to "Ticket Transaction" BUT I can get it if the CF applies to "ticket".<br>I have tried many suggested ways to implement it which I found in the net. but none of them solved it for me.<br>
<br>I have the following scrip and the Logger output is empty when I use $Ticket->FirstCustomFieldValue. I can't get the CF Value out of it...<br><br><b>Please help :(</b><br><br>{ ### True when transaction is incoming email and CF 'noemail' is not set<br>
my $Transaction = $self->TransactionObj;<br> my $Ticket = $self->TicketObj;<br> my $val = $Transaction->Type eq 'Status'<br> && $Transaction->NewValue eq 'resolved'<br>
&& get_custom("SendResolutionMail");<br> return $val;<br><br> ### Returns custom field value<br> ### get_custom($field_name)<br> sub get_custom {<br> my $target_name = $_[0];<br>
my $val = $Ticket->FirstCustomFieldValue($target_name);<br>
<b>$RT::Logger->warning("$val");</b> # Logger output - RT: ((eval 1182):14) <br> return $val if defined $val;<br> return undef;<br> }<br>}<br></div>
</blockquote></div><br></div>