Skip to main content

system.kanoa.event.getAssetProductionEventsByShift(paramsDict)

Returns production data by shift filtered by the given parameters


Parameters

paramsDict Dictionary

- assetIdInteger
- assetPathString
- endDateDateTime
- modeIdIntegerNot required. Can be None for all modes
- modeNameStringNot required. Can be None for all modes
- startDateDateTime
- workOrderIdIntegerNot required

Returns

productionData pyDataset


Example

paramsDict = {
'assetPath': 'Kanoa Box Co\Box Plant\Packaging\Box Line 1',
'startDate': system.date.parse("2025-06-04 00:00:00"),
'endDate': system.date.parse("2025-06-12 00:00:00")
}
data = system.kanoa.utilities.convertDatasetToJSON(system.kanoa.event.getAssetPerformanceEventsByShift(paramsDict))
>>>