Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Filters not working - is it me?
I have problems with this piece of code:
var filters = new Array();
filters[0] = new nlobjSearchFilter( "custrecord_wg_extrasrecord", null, 'is', [record], null);
var columns = new Array();
columns[0] = new nlobjSearchColumn( "name" );
columns[1] = new nlobjSearchColumn( "custrecord_wg_custbuying" );
var searchresults = nlapiSearchRecord( 'customrecord1', null, filters, columns );
FYI: [record] is '303' - whish is correct.
This used to work.
There are no search results - i thought it was related to issue number 128181 but that 'fix' was released - but this piece of code, which was working in v11 now fails - and I am getting nowhere at the moment ? using null for filters and the search returns records - so problem is in the filters. BUT as I am NOT an experienced programer it may be me ? Help appreciated.