# system.kanoa.quality.event.addCheckEvent(chkEventInfo, userId)

Adds a new check sheet event. Only chkShtId key is required

---
### Parameters
**chkEventInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - assetId</td><td>Integer</td><td>Not required</td></tr>	
 	<tr><td> - chkShtId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - chkShtStateId</td><td>Integer</td><td>Not required</td></tr>	
 	<tr><td> - chkShtTriggerId</td><td>Integer</td><td>Not required. Links the coming due info to this check sheet</td></tr>	
 	<tr><td> - comment</td><td>String</td><td>Not required</td></tr>	
 	<tr><td> - itemId</td><td>Integer</td><td>Not required</td></tr>	
 	<tr><td> - scheduledDate</td><td>DateTime</td><td>Not required</td></tr>	
 	<tr><td> - shiftNameId</td><td>Integer</td><td>Not required</td></tr>	
 	<tr><td> - triggerTypeId:</td><td>Not</td><td>required. Links what triggered this checksheet</td></tr>	
	</tbody>
</table>

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

---
### Returns
**chkShtEventId** `Integer`<br />

---
### Example
```python
chkShtStates = system.kanoa.utilities.convertDatasetToDict(system.kanoa.quality.sheet.getStates({'enabled': True}), 'chkShtStateName', 'chkShtStateId')
chkEventInfo = {
                    'chkShtId': 1, 
                    'assetId': 18, 
                    'shiftNameId': 1, 
                    'itemId': 5, 
                    'chkShtTriggerId': 3, 
                    'chkShtStateId': chkShtStates['Due'], 
                    'comment': None, 
                    'scheduledDate': system.date.now()
                }
userId = 123
chkShtEventId = system.kanoa.quality.event.addCheckEvent(chkEventInfo, userId)
```
