# system.kanoa.cmms.addProcedureStepEvent(procedureStepEventInfo, userId)

Adds a procedure step event, recording the outcome of a single step within a procedure execution (e.g. an operator marking a step as completed, logging time spent, or leaving a comment) and links it back to the parent work order event.
All procedureStepEventInfo keys are required.

---
### Parameters
**procedureStepEventInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - actualMinutes</td><td>Integer</td><td></td></tr>	
 	<tr><td> - comment</td><td>String</td><td></td></tr>	
 	<tr><td> - completed</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - procedureStepId</td><td>Integer</td><td>Id of procedureStep</td></tr>	
 	<tr><td> - workOrderEventId</td><td>Integer</td><td>Id of workOrderEvent</td></tr>	
	</tbody>
</table>

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

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

---
### Example
```python
procedureStepEventInfo = {
							"actualMinutes": 12,
							"comment": "Bearing temperature within spec, no abnormal vibration noted.",
							"completed": True,
							"procedureStepId": 4501,
							"workOrderEventId": 88231,
						}
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
procedureStepEventId, message = system.kanoa.cmms.addProcedureStepEvent(procedureStepEventInfo, userId)
print procedureStepEventId, message
```
