title: NetSuite SuiteTalk - Retrieve Value String From "SearchColumnSelectCustomField"
body: <p>I have a small application that iterates over the results of a "Saved Search" retrieving the values from several Custom Columns(simplified example):</p>
  
  <pre><code>var results = searchResults.Select(a =&gt; new
  {
      X = ((SearchColumnBooleanCustomField)a.basic.customFieldList
          .First(b =&gt; b.scriptId == "custentityX")).searchValue
      Y = ((SearchColumnDateCustomField)a.basic.customFieldList
          .First(b =&gt; b.scriptId == "custentityY")).searchValue
      Z = ((SearchColumnSelectCustomField)a.basic.customFieldList
          .First(b =&gt; b.scriptId == "custentityZ")).searchValue.name
  }
  </code></pre>
  
  <p>For most returned column types I get a value consistent with the type(bool/date/etc...) but with the "SearchColumnSelectCustomField" I don't get any value in the returned "searchValue.name", it's always null, however the "searchValue.internalID" column is always populated. So for some reason its getting the selection but not returning the value from that selection.</p>
  
  <p>How do I access the text value that I can see from the NetSuite interface from SuiteTalk("searchValue.name")? Do I have to execute another query to retrieve all value key pairs related to that internalID? For every custom field? And if so then what is the purpose of the name field in the first place?</p>
  
  <p>I've tried searching around for this, but there's not really allot of documentation on the subject(or on SuiteTalk in general), in other languages(PHP/Java) people mention "getSelectValue"(<a href="http://suiteweekly.com/2015/07/netsuite-get-all-country-list/" rel="nofollow noreferrer">here</a>, and briefly <a href="https://stackoverflow.com/questions/35592165/netsuite-how-to-get-or-set-a-value-for-an-othercustomfield-through-suitetalk-so">here</a>), I could try this in C#, but I'm not sure if these apply or if that can be done for custom value selections.
  Then there's some references for determining the values BEFORE the search, <a href="https://stackoverflow.com/a/18899489/2912011">this</a> seems like overkill to me, is it really that hard? I have dozens of CustomFields I would like to access in my final application. Seems like there should be an easier way...</p>