Skip to main content

system.kanoa.shift.addShiftEvent

Description

Adds an entry to the shiftEvent table (kanoaOps).

Syntax

addShiftEvent(shiftEventInfo, userId)
  • Parameters
      shiftEventInfo (Dictionary) - Shift event information.
      userId (Integer) - User ID.
  • Returns
      Shift Event ID (Integer).
  • Code Examples

    # Example Usage:
    shiftEventInfo = {'assetId': 1, 'shiftId': 2, 'tStamp': someDate}
    shiftEventId = system.kanoa.shift.addShiftEvent(shiftEventInfo, 123)