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.
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