system.kanoa.schedule.getScheduleBlocks
Description
Returns all schedule blocks for the given parameters.Syntax
getScheduleBlocks(paramsDict)- paramsDict (Dictionary) - Dictionary containing parameters such as assetPath, startDate, endDate, recurring, etc.
- scheduleBlocks (pyDataset) - Dataset containing schedule blocks based on the provided parameters.
Code Example
# Example Usage:
schedule_params = {'assetPath': 'Kanoa Industries\\Adelaide Hills\\Packaging\\Line 1', 'startDate': system.date.parse("2023-01-01 00:00:00"), 'endDate': system.date.parse("2023-02-01 00:00:00"), 'recurring': True}
schedule_blocks = system.kanoa.schedule.getScheduleBlocks(schedule_params)