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