Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Salesorders for a Customer ID
In a Suitelet, the search I'm running to get a list of salesorders for a particular Customer ID returns lots of duplicates.
This is the code I'm using in the SuiteScript:
var curCustomerID = "123456"; // this number comes for elsewhere
var filters[0] = new nlobjSearchFilter('entity', null, 'is', curCustomerID);
var columns[0] = new nlobjSearchColumn('internalid');
var searchResults = ""; searchResults = nlapiSearchRecord('salesorder', null, filters, columns);
With the above, I get a list of salesorders internal IDs, which is exactly what I want.
The list will contain mostly duplicates. I don't see a pattern to why their are so many duplicate internal IDs. Some IDs are duplicated up to 15 times, some only 6, etc.