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