Skip to main content

system.kanoa.shift.deleteShiftEvents(shiftEventInfo)

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


Parameters

shiftEventInfo Dictionary

- assetIdInteger
- endDateDateTime
- startDateDateTime

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)