<br><br><div class="gmail_quote">On Fri, May 4, 2012 at 6:11 AM, Joshua Laroff <span dir="ltr"><<a href="mailto:jlaroff@gmail.com" target="_blank">jlaroff@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":2vp">my $cf = RT::CustomField->new($RT::SystemUser);<br>
$cf->LoadByName(Name => 'Customer');<br><br></div></blockquote><div>... </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2vp">
<br>
$self->TicketObj->AddCustomFieldValue(Field => $cf, Value => $result);<br>
return 1;</div></blockquote></div><br>Actually, I think you can just pass the field name into AddCustomFieldValue and cut out looking up the name yourself. At least that's what I've been doing and it appears to work.<div>
<div><br></div>-- <br><a href="http://www.linkedin.com/in/paultomblin">http://www.linkedin.com/in/paultomblin</a><br><a href="http://careers.stackoverflow.com/ptomblin">http://careers.stackoverflow.com/ptomblin</a><br><br>
</div>