Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Search Filter by Document Status (Opp)
Hi all,
This sounds crazy, but I cannot for the life of me figure out how to setup a filter for Opportunities that are either 'In Progress', or 'Issued Estimate'. Sounds simple right? When you do a saved search the criteria is 'Document Status', if you load the record into the debugger its 'documentstatus'.
Here's the code I've used
filters.push(new nlobjSearchFilter('entitystatus',null,'anyof',['Opprtnty:A','Opprtnty:B'])); that doesn't work, it returns me all opportunities, if I use 'status' it returns nothing, if I use 'documentstatus' it also returns an error. (note: if I use the saved search, I get 107 records, same filters). Anybody done this in scripts before? I might be missing something in the documentation, wouldn't be the first time
0