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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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