Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Saved search won't filter with nlobjSearchFilter
I have a saved search for product issues which returns issues for multiple products.
Rather than create MANY different saved searches (one for each product), I'm trying to make this one search filterable via script, so that the script can narrow the search results down further, to issues for one product.
It's supposedly possible to pass additional search filters into a search, thusly:
var searchresults = nlapiSearchRecord('issue',searchID,[new nlobjSearchFilter("product",null,"is","Product Name Here")], null);
When I start looping through searchresults, I get unfiltered results back, as if the nlobjSearchFilter() parameter is ignored. I've tried various permutations of "anyof", "is" and "contains" but still no filtering.