Skip to main content

system.kanoa.cmms.addWorkOrderEventStatus(statusInfo, userId)

Adds a status. All statusInfo keys are required.


Parameters

statusInfo Dictionary

- enabledBoolean
- isActiveBoolean
- reservedBySystemBoolean
- sortOrderBoolean
- workOrderEventStatusCategoryIdInteger
- workOrderEventStatusColorString
- workOrderEventStatusNameStringName of status

userId Integer:Id of the user executing the function


Returns

workOrderEventStatusId Integer
message String None if success


Example