title: How do I call NetSuite SuiteTalk inventoryitem add using list name for StringCustomFieldRef value instead of internalID?
body: <p>When adding a new inventoryitem through the API we have a few list based custom fields we need to fill in. I want to be able to use the string value for the field but when I try to the call errors out.</p>
  
  <p>We have a custom list with two values:
  InternalId 1 is "LTL"
  InternalId 2 is "FedEx"</p>
  
  <p>I have tried sending the value across as a StringCustomFieldRef and when setting the value to the string value of the "LTL" we get an invalid ref error. When setting the value to the internalId of 1 it works.</p>
  
  <p>I also tried using a SelectCustomFieldRef and when setting the value->name to the string value of "LTL" it errors like we did not pass the value at all. When we set value->internalId to 1 it works.</p>
  
  <p>Is it possible to just pass in the string value?</p>
  
  <p>Does not work:</p>
  
  <pre class="lang-php prettyprint-override"><code>                $customField1 = new StringCustomFieldRef();
                  $customField1 -&gt;value = "LTL";
                  $customField1 -&gt;scriptId = 'custitem_zu_zu_fulfill_pref';
  </code></pre>
  
  <p>Works:</p>
  
  <pre class="lang-php prettyprint-override"><code>                $customField1 = new StringCustomFieldRef();
                  $customField1 -&gt;value = "1";
                  $customField1 -&gt;scriptId = 'custitem_zu_zu_fulfill_pref';
  </code></pre>
  
  <p>This is the error response:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;platformCore:statusDetail type="ERROR"&gt;
      &lt;platformCore:code&gt;INVALID_KEY_OR_REF&lt;/platformCore:code&gt;
      &lt;platformCore:message&gt;Invalid custitem_zu_zu_fulfill_pref reference key LTL.&lt;/platformCore:message&gt;
  &lt;/platformCore:statusDetail&gt;
  </code></pre>