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
- parentIdIntegerCan be None
- stateCategoryIdInteger
- stateCategoryNameString

userId Integer:Id of the user executing the function


Returns

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


Example

stateCategoryInfo={'stateCategoryId': 18, 'parentId': 4, 'stateCategoryName': 'Parts', 'enabled': True}
userId = 5
retVal, message = system.kanoa.asset.updateStateCategory(stateCategoryInfo, userId)