<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 26, 2013 at 11:44 AM, Raymond Corbett <span dir="ltr"><<a href="mailto:Raymond.Corbett@arcproductions.com" target="_blank">Raymond.Corbett@arcproductions.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Assuming I want to load a customfield, how would I identify it by name?  For example the one I called “Dev Code”</blockquote>
</div><br>If you want the value of a custom field in a ticket, the easiest way is $ticket->FirstCustomFieldValue("Dev Code");</div><div class="gmail_extra"><br></div><div class="gmail_extra">If you want to do something like write a query that takes into account the value of a custom field, then you end up doing a join with ObjectCustomFieldValues and CustomFields</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><br><br clear="all"><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>

</div></div>