system.kanoa.shift.addShiftEvent
Description
Adds an entry to the shiftEvent table (kanoaOps).Syntax
addShiftEvent(shiftEventInfo, userId)- shiftEventInfo (Dictionary) - Shift event information.
- userId (Integer) - User ID.
- Shift Event ID (Integer).
Code Example
# Example Usage:
shiftEventInfo = {'assetId': 1, 'shiftId': 2, 'tStamp': someDate}
shiftEventId = system.kanoa.shift.addShiftEvent(shiftEventInfo, 123)