Skip to main content

system.kanoa.quality.event.addCheckEvent

Requires kanoaQDS license

Description

Adds a new check sheet event.

Syntax

addCheckEvent(chkEventInfo, userId)

Parameters:
  • chkEventInfo (dictionary): Dictionary containing information about the check sheet event.
  • userId (int): ID of the user adding the check sheet event.

  • Returns:
  • chkShtEventId (int): ID of the newly added check sheet event.
  • Code Examples

    # 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)