Skip to main content

system.kanoa.schedule.getScheduleBlocks

This function requires KanoaOPS module

Description

Returns all schedule blocks for the given parameters.

Syntax

getScheduleBlocks(paramsDict)
  • Parameters
      paramsDict (Dictionary) - Dictionary containing parameters such as assetPath, startDate, endDate, recurring, etc.
  • Returns
      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)