I have a question on loading and running a saved s...
# suitescript
t
I have a question on loading and running a saved search in netsuite through suitescript. If I look at the saved search in netsuite some filters pop up under the search criteria. However, when I load and run the saved search through suitescript it seems the search criteria defined in the saved search does not apply when running it via suitescript. Is there anything I can do to load the saved search criteria?
d
Are you using
search.load
in your suitescript to get the search?
e
Which filters are you talking about? The ones that appear on the Criteria tab of the Search definition? Or the ones that appear at the top of the results page?
t
Yes I am running search.load. And eric I am talking about the criteria tab of the search definition
b
search.load should get you the filter criteria and the result columns defined in the ui saved search
t
battk I am positive that it is not though unfortunately. When looking at the saved search through netsuite I see 147,000 records. When running it in suitescript I see over 4 million. Something from the search criteria is not being transferred when I run search.load
b
what are the filters and columns in the ui
t
there is a filter for date in the ui that is all
which comes from the criteria
b
result columns matter too
that said, you can try recreating the search in code if you dont trust the search load
t
that is an option but for this project it is overcomplicating things, may get in touch with netsuite support.
b
recreating a search from the ui in code is one of the more common suitescript tasks