Sunday, September 9, 2018

Set or Update the outofstockbehavior field via SuiteScript


The outofstockbehavior field can be set by setting the field into something like this.
 

var item1 = nlapiLoadRecord('inventoryitem',92);
item1.setFieldValue('outofstockbehavior','DISABLE');

 

It can accept the following string identical to the list available in the NetSuite user interface:
 
outofstockbehavior = {string} DISABLE
outofstockbehavior = {string} ENABLE
outofstockbehavior = {string} REMOVE
outofstockbehavior = {string} ENABLENMSG
outofstockbehavior = {string} DEFAULT

No comments:

Post a Comment