system.kanoa.quality.event.addCheckEvent
Description
Adds a new check sheet event in KanoaQDS.Syntax
addCheckEvent(chkEventInfo, userId)- chkEventInfo - Dictionary containing information about the check sheet event (dictionary).
- userId - ID of the user adding the check sheet event (int).
- chkShtEventId - ID of the newly added check sheet event (int).
Code Example
# Usage example
chk_event_info = {'chkShtId': 1, 'assetId': 18, 'shiftNameId': 1, 'itemId': 5, 'chkShtTriggerId': 3, 'chkShtStateId': 8, 'comment': None, 'scheduledDate': somedate}
user_id = 123
chk_sht_event_id = system.kanoa.quality.event.addCheckEvent(chkEventInfo=chk_event_info, userId=user_id)
print(chk_sht_event_id)