Skip to main content

system.kanoa.shift.addShiftEvent(shiftEventInfo)

This function adds an entry to the shiftEvent table. All shiftEventInfo keys are required


Parameters

shiftEventInfo Dictionary

- assetIdInteger
- shiftIdInteger
- tStampDateTime

Returns

shiftEventId Integer


Example

shiftEventInfo = {'assetId': 1, 'shiftId': 2, 'tStamp': system.date.parse("2025-11-05 00:00:00")}
shiftEventId = system.kanoa.shift.addShiftEvent(shiftEventInfo, 123)