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.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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