system.kanoa.cmms.addWorkOrderStatus(statusInfo, userId)
Adds a status. All statusInfo keys are required.
Parameters
statusInfo Dictionary
| - enabled | Boolean | |
| - isActive | Boolean | |
| - sortOrder | Boolean | |
| - workOrderStatusName | String | Name of status |
userId Integer:Id of the user executing the function
Returns
workOrderStatusId Integer
message String None if success
Example