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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
SuiteWorld | October 25–28, 2026 | Las Vegas
Registration opens June 9. Be ready when passes drop. Get the green light now - Convince your boss
Registration opens June 9. Be ready when passes drop. Get the green light now - Convince your boss
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