Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Updatinf custom field for the inventory item
Hi,
I need to update the "Limited Inventory" for some items to true or false.
I need to do following:-
1) Get the item, get the customField list,get the custom fields(CustomfieldArray), check for the fileld to be of BooleanCustomFieldref type , if it is then check if the BooleanCustomFieldref.getInternalId is "custitemcustom_limited_inv".If it is true then get the value, and based on that set it to true or false.
I am not too sure on how to set the values back.
Do I need to create a new customField array,custom fieldList and BooleanCustFieldRef and set them to the InventoryItem.Or I can simply set the value of the obtained BooleanCustFieldRef to true and false and set it back to the obtained Array, and CustomField list.