# system.kanoa.cmms.addWorkOrderStatus(statusInfo, userId)

Creates a new work order status code (e.g. "Open", "In Progress", "On Hold", "Closed") that can later be assigned to a work order. Call this when configuring the list of statuses a work order is allowed to move through, rather than when changing an individual work order's current status. 
All keys in `statusInfo` are required � the function does not perform a partial insert, so every field must be supplied even if it holds a default value.

---
### Parameters
**statusInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - sortOrder</td><td>Integer</td><td></td></tr>	
 	<tr><td> - workOrderStatusName</td><td>String</td><td>Name of status</td></tr>	
	</tbody>
</table>

**userId** `Integer`:Id of the user executing the function<br />

---
### Returns
**workOrderStatusId** `Integer`<br />
**message** `String` None if success<br />

---
### Example
```python
statusInfo = {
				"enabled": True,
				"sortOrder": 4,
				"workOrderStatusName": "On Hold"
			}
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
workOrderStatusId, message = system.kanoa.cmms.addWorkOrderStatus(statusInfo, userId)
print workOrderStatusId, message
```
