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