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.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Restlet to create a Non-inventory Item for Sale
I have the code below that is working, but it creates a Non-inventory Item for Resale. I need to create a Non-inventory Item for Sale.
I might be missing it and see the NON_INVENTORY_ITEM record type here: but I don't see anything that looks like it would support Resale.
define(['N/record', 'N/log'], function(record, log) {
function doPost(requestBody) {
try {
// Create a new inventory item record
var itemRecord = record.create({
type: record.Type.NON_INVENTORY_ITEM,
isDynamic: true
});
itemRecord.setValue({
fieldId: 'itemid',
value: itemName
});
0