# system.kanoa.schedule.getCalendarEvents(paramsDict)

Gets all operations schedule or shift events for the specified range. Applies an offset to the returned dates to show correctly on the calendar component.
paramsDict keys are optional unloess otherwise stated.

---
### Parameters
**paramsDict** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - activeEventsOnly</td><td>Boolean</td><td>Used when looking for the current shift or operation schedule only</td></tr>	
 	<tr><td> - assetPath</td><td>String</td><td></td></tr>	
 	<tr><td> - endDate</td><td>DateTime</td><td>Required</td></tr>	
 	<tr><td> - scheduleType</td><td>String</td><td>Required. Type can be shift or operation</td></tr>	
 	<tr><td> - startDate</td><td>DateTime</td><td>Required</td></tr>	
 	<tr><td> - tzOffsets</td><td>Dictionary</td><td>Can be passed in to improve performance. &#123;"Pacific Standard Time": &#123;"startOffsetMins":  480, "endOffSetMins":  480&#125;&#125;</td></tr>	
	</tbody>
</table>

---
### Returns
**scheduleData** `pyDataset`<br />

---
### Example
```python
startDate = system.date.parse("2025-01-01 00:00:00")
endDate = system.date.parse("2025-01-07 00:00:00")
assetPath = 'Kanoa Industries\Adelaide Hills\Packaging\Line 1'
scheduleData = system.kanoa.schedule.getCalendarEvents({'scheduleType': 'shift', 'startDate': startDate, 'endDate': endDate, 'assetPath': assetPath})
```
