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.
Trying to create my first invoice through script, but I don't see it in the front-end?
createdInvoice = nlapiCreateRecord('invoice'); createdInvoice.setFieldValue('entity', 1233); createdInvoice.selectNewLineItem('item'); createdInvoice.setCurrentLineItemValue('item', 'item', "ITEM"); createdInvoice.setCurrentLineItemValue('item', 'quantity', 4); createdInvoice.setCurrentLineItemValue('item', 'rate', 24 ); createdInvoice.setCurrentLineItemValue('item', 'custcol_list_rate', 24); createdInvoice.setCurrentLineItemValue('item', 'amount', 24); createdInvoice.setCurrentLineItemValue('item', 'description', "description"); createdInvoice.commitLineItem('item');I'm fairly new to NetSuite and I'm just trying to create an invoice in my sandbox account. My customer's ID is 1233. After running this script through my browser's javascript console I don't see the invoice nor the item/transaction tied to it. Maybe I'm fundamentally misunderstanding something about invoices? Thank you,
0