Discussions
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.