title: Searching an array of items in NetSuite using SuiteScript 2
body: <p>I am attempting to write a suitescript search that allows me to pass an array of identifiers to a particular field in Netsuite and return the results. I have tried 'ANYOF', 'ALLOF' and "WITHIN' but I keep getting errors</p>
  
  <p>Here is my code so far:</p>
  
  <pre><code>    if(params.type=='sku'){
          var filter_name = 'itemid';
      }else{
          var filter_name = 'upccode';
      }
  
  
      var filters = [
         search.createFilter({
              name: filter_name,
              operator: search.Operator.ANYOF,
              values: ['HERHR5201','HERHR5202','HERHR5203']
         }),
      ];
  
      var s = search.create({
          'type': record.Type.INVENTORY_ITEM, 
        'filters':filters,
  
      }).run();
      s = s.getRange(0,100);
  
      return JSON.stringify(s);
  </code></pre>
  
  <p>Does anyone know the right sequence to create a multiple search of itemid's? Also, for a bonus, is there a way to have the resultset return the columns I need verses just the ideas? Do I need to createColumn?</p>