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.
Sales Order Search, Joining to Customer not working
Hi,
Need help with a call to a search. Here's the code:
var searchFilters = new Array(); var searchColumns = new Array(); searchFilters[0] = new nlobjSearchFilter('entityid','customer','is',nlapiGetFieldText('entity'),null); searchFilters[1] = new nlobjSearchFilter('trandate',null,'on',nlapiGetFieldValue('trandate'),null); searchColumns[0] = new nlobjSearchColumn('number',null); searchColumns[1] = new nlobjSearchColumn('trandate',null); var results = nlapiSearchRecord('salesorder',null,searchFilters,searchColumns);searchFilters[0] = new nlobjSearchFilter('entityid','customer','is',nlapiGetFieldText('entity'),null); is not working and causing the search to bug out. What am I doing wrong?
I basically need the search to tell me if there are any other Sales Order for customer on a given date (e.g. did the customer already place a sales order today).
0