Skip to main content

system.kanoa.item.updateItemField(itemId, field, value, userId)

Updates an items field value


Parameters

itemId Integer: Id of item to update
field String: Valid options are 'itemName', 'itemDescription', 'itemClassId', 'itemColor': 'enabled'
value pyObject: Value to update to
userId Integer: Id of user executing the function


Returns

# of records modified Integer


Example

retVal = system.kanoa.item.updateItemField(1, 'itemName', 'NewName', 123)