system.kanoa.shift.deleteShiftEvents(shiftEventInfo)
This function deletes an entry to the shiftEvent table. All shiftEventInfo keys are required
Parameters
shiftEventInfo Dictionary
| - assetId | Integer | |
| - endDate | DateTime | |
| - startDate | DateTime |
Returns
# of records modified Integer
Example
startDate = system.date.parse("2025-11-05 00:00:00")
endDate = system.date.parse("2025-11-06 00:00:00")
shiftEventInfo = {'assetId': 1, 'startDate': startDate, 'endDate': endDate}
retVal = system.kanoa.shift.deleteShiftEvents(shiftEventInfo)