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.
Please note that on Saturday, April 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Change a transaction line of a saleorder?
i'm attempting to change transaction lines of a sales order but not quite sure how to accomplish this.. some insight would be great..
here's what i've got so far..
function uncommitSales() { var filters = new Array(); var columns = new Array(); filters[0] = new nlobjSearchFilter("quantitycommitted",null,"greaterthan",0); filters[1] = new nlobjSearchFilter("quantityshiprecv",null,"equalto",0); filters[2] = new nlobjSearchFilter("enddate",null,"before","01/15/2007"); columns[0] = new nlobjSearchColumn("internalid"); columns[1] = new nlobjSearchColumn("item"); var searchresults = nlapiSearchRecord("salesorder", null, filters, columns); var result = ""; for ( var i = 0; i < Math.min(10, searchresults.length); i++) { var record = nlapiLoadRecord(searchresults[i].getRecordType(), searchresults[i].getId()); result += i + " :: " + searchresults[i].getRecordType() + " :: " + searchresults[i].getId() + " :: " + searchresults[i].getValue('internalid') + " :: " + searchresults[i].getValue('item') + " :: " + searchresults[i].getText('item') + "n"; } alert (result); 0