system.kanoa.shift.getShiftCalendarEvents
Description
Returns the shift calendar event for the given parameters. It will combine an assets shifts with any inherited shiftsSyntax
getShiftCalendarEvents(paramsDict)- paramsDict (dict)
- - startDate (datetime)
- - endDate (datetime)
- - assetPath (string)
- includeInherited (bool)
- includeSubAssets (bool)
- Schedule data (Dataset).
Code Example
# Example Usage:
startDate = system.date.parse("2025-01-01 00:00:00")
endDate = system.date.parse("2025-01-07 00:00:00")
paramsDict = {'assetPath': 'Kanoa Industries\Adelaide Hills\Packaging\Line 1, 'startDate': startDate, 'endDate': endDate}
scheduleData = system.kanoa.shift.getShiftCalendarEvents(paramsDict)