Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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.