system.kanoa.cmms.addMaintenanceType(maintenanceTypeInfo, userId)
Adds a maintenance type. All maintenanceTypeInfo keys are required.
Parameters
maintenanceTypeInfo Dictionary
| - enabled | Boolean | |
| - maintenanceTypeColor | String | i.e '#FF000' |
| - maintenanceTypeName | String | Name of sub type |
userId Integer:Id of the user executing the function
Returns
maintenanceTypeId Integer
message String None if success
Example