system.kanoa.asset.updateStateField
Description
Updates the passed field value for the given stateId. If the field is enabled, it will update the assetLink Table (kanoaOPS)Syntax
updateStateField(stateId, field, value, userId)- stateId (int) - The ID of the state
- field (string) - Name of the column
- value (pyObject) - The new value for the field
- userId (int) - User ID
- # of records modified (int)
Code Examples
# Example Usage:
modified_records = system.kanoa.asset.updateStateField(123, 'field_name', 'new_value', 789)