<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hello RT-Users,</div><div class=""><br class=""></div><div class=""><div class="">Nevermind!  :-)</div><div class=""><br class=""></div><div class="">I'm doing a chain of RT::Action::CreateTickets and it turns out my problem was that the custom fields were not being set before the Investigation ticket creation and therefor the CF's had no values.  Once the issue with that was resolved it all started working perfectly.</div><br class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Landon Stewart : <a href="mailto:lstewart@iweb.com" class="">lstewart@iweb.com</a></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Lead Specialist, Abuse and Security Management<br class="">Spécialiste principal, gestion des abus et sécurité<br class=""><a href="http://iweb.com" class="">http://iweb.com</a> : +1 (888) 909-4932</div><div class=""><br class=""></div></div></div></div><div class=""><br class=""><blockquote type="cite" class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="">On Mar 10, 2015, at 12:15 AM, Landon Stewart <<a href="mailto:lstewart@iweb.com" class="">lstewart@iweb.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="">Hello,</div><div class=""><br class=""></div><div class="">It seems that one cannot load the values of a CF with <font face="Courier New" class="">$Ticket{'TOP'}->CustomFieldValues($fieldname)</font>.  The result is an empty variable.  I've confirmed that the foreach works for each of the $cfname in the @cflist since I get log entries for them but $cfvs->Next doesn't produce a value (nothing is logged).</div><div class=""><br class=""></div><div class=""><div class=""><font face="Courier New" class="">===Create-Ticket: Investigation</font></div><div class=""><font face="Courier New" class="">{</font></div><div class=""><font face="Courier New" class="">  my @cflist = [ 'Customfield1', 'Customfield2', 'etc'];</font></div><div class=""><font face="Courier New" class="">  our @CFTEXT;</font></div><div class=""><font face="Courier New" class="">  foreach my $cfname (@cflist) {</font></div><div class=""><span class="" style="font-family: 'Courier New';">    RT::Logger->info($cfname);</span></div><div class=""><font face="Courier New" class="">    my $cfvs = $Tickets{"TOP"}->CustomFieldValues($cfname);</font></div><div class=""><font face="Courier New" class="">    while (my $cfv = $cfvs->Next) {</font></div><div class=""><font face="Courier New" class="">      RT::Logger->info($cfname.": ".$cfv->Content);</font></div><div class=""><font face="Courier New" class="">      push @CFTEXT, "CF-".$cfname.": ".$cfv->Content;</font></div><div class=""><font face="Courier New" class="">    }</font></div><div class=""><font face="Courier New" class="">  }</font></div><div class=""><font face="Courier New" class="">}</font></div><div class=""><font face="Courier New" class="">Queue: Investigations</font></div><div class=""><font face="Courier New" class="">Parents: TOP</font></div><div class=""><font face="Courier New" class="">Status: open</font></div><div class=""><font face="Courier New" class="">{ join("\n", @CFTEXT) }</font></div><div class=""><font face="Courier New" class="">Content-Type: text/html</font></div><div class=""><font face="Courier New" class="">Content:<pre>{$Tickets{"TOP"}->Transactions->First->Content}</pre></font></div><div class=""><font face="Courier New" class="">ENDOFCONTENT</font></div></div></div></div></div></blockquote></div><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><div class=""><br class=""></div></div></div></div></div></div></body></html>