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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Please note that on Friday, March 20, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 4 hours. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Filtering Search on systemnotes
Have an existing Saved Search that I am trying to migrate to Suitescript. The existing search has a filter "systemnotes.field is Title" and works correctly. This is the script I have written up:
var filters = [ new nlobjSearchFilter( 'datecreated', null, 'within', nlapiStringToDate('1/21/2011'), nlapiStringToDate('2/24/2011') ), // new nlobjSearchFilter( 'field', 'systemnotes', 'anyof', "Title" ), new nlobjSearchFilter( 'newvalue', 'systemnotes', 'isnot', 'New QSO Opportunity' ), new nlobjSearchFilter( 'type', 'systemnotes', 'startswith', 'Set' ) ]; var columns = [ new nlobjSearchColumn( 'number' ) ]; var records = nlapiSearchRecord( 'opportunity', null, filters, columns );This works and returns 300 records. The commented filter on systemnotes.field should drop the result count by around 50 records, but uncommenting that line results in the search returning null. Have tried both "is" and "anyof", and values of "Title"[text] and "title"[value]. Any ideas what I am doing wrong?
0