Skip to main content

system.kanoa.item.updateItemStateField(itemStateId, field, value, userId)

Updates the passed field value for the given itemStateId. If the field is enabled, we will update the assetLink Table


Parameters

itemStateId Integer: Id of the item state to update
field String: name of field. Valid options are itemStateName, itemStateClassId, counterTypeId, enabled
value pyObject: Value to update
userId Integer: Id of user executing the function


Returns

# of records modified Integer
message String None if success


Example

updatedItemId = system.kanoa.item.updateItemStateField(1, 'itemStateName', 'QA Hold', 1)