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 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Add Itemline Salesorder on clientevent save
Hi all,
I want to add item discount automatically when I click save button on salesorder, .
I have created some script on event save record, continue to postsourching, .
function mySaveRecord() { nlapiSelectNewLineItem('item'); nlapiSetCurrentLineItemValue('item', 'item', '2402'); } function postSourcing(type, name) { if(type=='item' && name=='item') { if (nlapiGetCurrentLineItemValue('item','item') == '2402') { nlapiSetCurrentLineItemValue('item', 'rate','-100'); nlapiSetCurrentLineItemValue('item', 'taxcode','8'); nlapiCommitLineItem('item'); } } } When I running script above I got error, .
My browser didn't work and not responding, .:h_a_w:
but sometime, there is no error but item can't be add, .
Is there some one can help my problem ??
0