{"action":"created","issue":{"url":"https://api.github.com/repos/NetSweet/netsuite/issues/164","labels_url":"https://api.github.com/repos/NetSweet/netsuite/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/NetSweet/netsuite/issues/164/comments","events_url":"https://api.github.com/repos/NetSweet/netsuite/issues/164/events","html_url":"https://github.com/NetSweet/netsuite/issues/164","id":59133606,"number":164,"title":"Issue with CustomRecord saved search","user":{"login":"spurnaye","id":87462,"avatar_url":"https://avatars.githubusercontent.com/u/87462?v=3","gravatar_id":"","url":"https://api.github.com/users/spurnaye","html_url":"https://github.com/spurnaye","followers_url":"https://api.github.com/users/spurnaye/followers","following_url":"https://api.github.com/users/spurnaye/following{/other_user}","gists_url":"https://api.github.com/users/spurnaye/gists{/gist_id}","starred_url":"https://api.github.com/users/spurnaye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spurnaye/subscriptions","organizations_url":"https://api.github.com/users/spurnaye/orgs","repos_url":"https://api.github.com/users/spurnaye/repos","events_url":"https://api.github.com/users/spurnaye/events{/privacy}","received_events_url":"https://api.github.com/users/spurnaye/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-26T19:58:27Z","updated_at":"2015-03-13T23:15:43Z","closed_at":null,"body":"Hello,\r\nHere is the code I am using to pull a custom search.\r\n\r\nresults =  NetSuite::Records::CustomRecord.search({\r\n  saved: <search_internal_id>,   # your saved search internalId\r\n  basic: [{\r\n    field: 'recType',\r\n            operator: 'is',\r\n            value: ::NetSuite::Records::CustomRecordRef.new(internal_id: <internal_id>)\r\n    }]\r\n}).results\r\n\r\nI see the successful output from Netsuite as xml is correctly getting printed with success flag. But I see following error:\r\ngems/ruby-2.1.3/gems/netsuite-0.3.3/lib/netsuite/support/search_result.rb:64:in `block in initialize': undefined method `search_joins=' for #<NetSuite::Records::CustomRecord:0x007fdddb1ab510> (NoMethodError)\r\n\tfrom .rvm/gems/ruby-2.1.3/gems/netsuite-0.3.3/lib/netsuite/support/search_result.rb:40:in `each'\r\n\tfrom .rvm/gems/ruby-2.1.3/gems/netsuite-0.3.3/lib/netsuite/support/search_result.rb:40:in `initialize'\r\n\tfrom .rvm/gems/ruby-2.1.3/gems/netsuite-0.3.3/lib/netsuite/actions/search.rb:241:in `new'\r\n\tfrom .rvm/gems/ruby-2.1.3/gems/netsuite-0.3.3/lib/netsuite/actions/search.rb:241:in `search'\r\n\tfrom test.rb:88:in `<main>'\r\n"},"comment":{"url":"https://api.github.com/repos/NetSweet/netsuite/issues/comments/79519572","html_url":"https://github.com/NetSweet/netsuite/issues/164#issuecomment-79519572","issue_url":"https://api.github.com/repos/NetSweet/netsuite/issues/164","id":79519572,"user":{"login":"feigner","id":617517,"avatar_url":"https://avatars.githubusercontent.com/u/617517?v=3","gravatar_id":"","url":"https://api.github.com/users/feigner","html_url":"https://github.com/feigner","followers_url":"https://api.github.com/users/feigner/followers","following_url":"https://api.github.com/users/feigner/following{/other_user}","gists_url":"https://api.github.com/users/feigner/gists{/gist_id}","starred_url":"https://api.github.com/users/feigner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feigner/subscriptions","organizations_url":"https://api.github.com/users/feigner/orgs","repos_url":"https://api.github.com/users/feigner/repos","events_url":"https://api.github.com/users/feigner/events{/privacy}","received_events_url":"https://api.github.com/users/feigner/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T23:15:43Z","updated_at":"2015-03-13T23:15:43Z","body":"Also, if you don't want to change that class, I believe that you can avoid a search join by specifying `returnSearchColumns: false` in your search preferences. "}}