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.
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.