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.
Adding 'OR' in suitescript saved search
How do you do an or... I have an existing saved search that has a condition.
I want to add an OR and another condition.
var mySearch = search.load( { id : 'customsearch_cs_customer_invoice_overdue',
columns : [ 'internalid',
'name',
'balance' ,
'transaction.partner'] });
filters = mySearch.filters;
Doing this does gives an invalid filter error.
filters.push(search.createFilter('OR' ));
This works on its own.....
filters.push(search.createFilter({ name : 'partner',
join : 'transaction',
operator : search.Operator.ISEMPTY }));