Skip to main content

system.kanoa.asset.updateStateCategory(stateCategoryInfo, userId)

Updates a stateCategory. All stateCategoryInfo keys are required. SQL Constraints will prevent duplicate state Categories from being created


Parameters

stateCategoryInfo Dictionary

- enabledBoolean
- stateCategoryIdInteger
- stateCategoryNameString

userId Integer: Id of user executing the function


Returns

# of records modified Boolean
msg String records modified or error message


Example

stateCategoryInfo={'stateCategoryId': 18, 'stateCategoryName': 'sausages', 'enabled': True}
userId = 5
successFlag, message = system.kanoa.asset.updateStateCategory(stateCategoryInfo, userId)