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.
Add Item to Orders
Hi all,
I'm very inexperienced with custom code but am trying to find a way to auto-add an item to every order. I'm sure this is messy code, but can someone please steer me in the right direction? This seems to be adding an item to each order, but it is not the one with internal ID 14!
function createLineAndSetItem( ) { nlapiSelectNewLineItem('item'); nlapiSetCurrentLineItemValue('item','14'); nlapiCommitLineItem('item'); }Thanks for your help-
JKelly
0