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.
Need help with group filter
I have the following filter that isn't returning the right result:
filters[0] = new nlobjSearchFilter('internalid', 'contact', 'is', input.id);
filters[1] = new nlobjSearchFilter('firstname', null, 'contains', input.searchValue).setOr(true);
filters[2] = new nlobjSearchFilter('lastname', null, 'contains', input.searchValue).setOr(true);
filters[3] = new nlobjSearchFilter('companyname', null, 'contains', input.searchValue).setOr(true);
filters[4] = new nlobjSearchFilter('email', null, 'contains', input.searchValue).setOr(true);
filters[5] = new nlobjSearchFilter('entitystatus', null, 'anyof', leadStatusCodes);
This is not working how I would want it where I really want:
filters[0] and (filters[1] or filters[2] or filters[3] or filters[4]) and filter[5]
Is there a better way to do this that works.