Hey,
I'm attempting to do a search on customers that have outstanding invoices on 45 or 60 days.
I am not able to figure out what operator or value to enter to filter on just invoices.
I've tried several combinations using equalto, is, anyof and Invoice, INVOICE, invoice, INV, Inv and inv but nothing works.
Help please!
var filters = new Array() filters[0] = new nlobjSearchFilter('amountremaining','transaction','greaterthan',0)//status = open filters[1] = new nlobjSearchFilter('daysoverdue','transaction','is',45,60)//days open = 45 filters[2] = new nlobjSearchFilter('type','transaction','is','INV') filters[3] = new nlobjSearchFilter('subsidiary',null,'anyOf',1)//UK Subsidiary var invoicesearch = nlapiSearchRecord('customer', null, filters, null) alert(invoicesearch.length)The search returns results if I leave out the type filter.Thanks