title: SuiteScript 2.0 Transaction Saved Search Filter
body: <p>I have created a saved search for transaction in netsuite and with suitescript 2.0 I am showing saved search data in my application. In application user can apply filter on any fields <a href="https://i.stack.imgur.com/mBck1.png" rel="nofollow noreferrer">(please see the attached screenshot)</a>. For example user select "Aug 2011" for posting period, only transactions of Aug 2011 should be loaded. This works fine if I create a filter with internalid of "Aug 2011", but on UI I dont have internal id. </p>
  
  <p>sample code:</p>
  
  <pre><code>/*
   here is my required module
  */
  
  function getTransactionData(datain)
  {
    try
    {
  
         var objSearch = search.load
                      ({
                          id: datain.savedsearchid
                      });
            /***** Work *****/
            objSearch.filters.push(search.createFilter({ name: "postingperiod",  operator: "ANYOF", values: "1" })); //here 1 is internalid of periodname "Aug 2011"
  
            /***** Not Work (SSS_INVALID_SRCH_FILTER_JOIN) *****/
            //objSearch.filters.push(search.createFilter({ name: "postingperiod", join: "accountingperiod",  operator: "ANYOF", values: "Aug 2011" }));
  
             objSearch.run();
    }
    catch(ex)
    {
        log.error("getTransactionData",  ex);
        throw ex;
    }
  }
  </code></pre>
  
  <p>I tried with join but seeing "SSS_INVALID_SRCH_FILTER_JOIN" error from Netsuite.</p>
  
  <p>Can any one please help me regarding this.</p>
  
  <p>Thanks in advance</p>