# system.kanoa.schedule.getScheduleBlocks(paramsDict)

Returns all schedule blocks for the given parameters. paramsDict keys are optional

---
### Parameters
**paramsDict** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - ScheduleBlockName</td><td>String</td><td></td></tr>	
 	<tr><td> - assetId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - assetPath</td><td>String</td><td></td></tr>	
 	<tr><td> - endDate</td><td>date</td><td></td></tr>	
 	<tr><td> - itemId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - itemName</td><td>String</td><td></td></tr>	
 	<tr><td> - modeId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - modeName</td><td>String</td><td></td></tr>	
 	<tr><td> - recurring</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - scheduleBlockId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - scheduleBlockIdList</td><td>List of Integers</td><td></td></tr>	
 	<tr><td> - startDate</td><td>date</td><td></td></tr>	
 	<tr><td> - workOrderId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - workOrderName</td><td>String</td><td></td></tr>	
	</tbody>
</table>

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

---
### Example
```python
paramsDict = {'scheduleBlockId': 217}
print system.kanoa.utilities.convertDatasetRowToJSON(system.kanoa.schedule.getScheduleBlocks(paramsDict), 0)
> {
    'modeName': u'Production', 
    'itemColor': u'#000000', 
    'notes': u'', 
    'color': u'#00FF00', 
    'scheduleBlockId': 217, 
    'scheduledQty': None, 
    'endDate': Mon Aug 14 00:30:00 UTC 2023, 
    'modeTypeId': 5, 
    'changedDate': None, 
    'itemName': u'Product A1', 
    'modeId': 2, 
    'assetId': 451, 
    'assetPath': None, 
    'changedBy': None, 
    'itemDescription': u'Nice buns', 
    'outfeedUnits': None, 
    'modeTypeName': u'Production', 
    'itemId': 45, 
    'modeColor': u'#00639a', 
    'createdDate': None, 
    'itemPath': u'FG\\WINE\\RED WINE\\Product A1', 
    'createdBy': None, 
    'rruleStr': u'FREQ=WEEKLY;INTERVAL=1;BYWEEKDAY=MO,TU,WE,TH,FR;UNTIL=20230816T020000', 
    'workOrderName': u'1234b', 
    'workOrderId': 1, 
    'scheduleBlockName': u'', 
    'startDate': Sun Aug 13 16:30:00 UTC 2023
  }
>>> 
```
