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.
NSC | Check Duplicate Order numbers
In some cases, a user may need to warn users that there are potential duplicate records. To achieve this, a user would like an error message to be displayed once the user creates an Sales Order with an existing Order Number already used with the same customer. This is achievable through Scripts
Execute a Search:
var searchResult = nlapiSearchRecord('salesorder', null, filters, columns);
if(searchResult != null)
{
for(var x=0; x < searchResult.length; x++)
{
var customerID = searchResult[x].getValue('entity');
nlapiLogExecution('DEBUG','Customer ID',"Customer ID: "+ customerID)
var customerPurchOrd = searchResult[x].getValue('otherrefnum')
nlapiLogExecution('DEBUG','Sales Order Number',"Sales Order Number: "+ customerPurchOrd)