Skip to main content

system.kanoa.event.deleteCounterEvents(counterInfo)

Delete counts event based on the passed in counterInfo.


Parameters

counterInfo Dictionary

- counterIdInteger
- endDateDateTime
- itemIdInteger
- itemStateIdInteger
- startDateDateTime
- workOrderIdInteger

Returns

# of records modified Integer
message String None if success


Example

counterId = 7
userId = 5
startDate = system.date.parse("2025-01-01 00:00:00")
endDate = system.date.parse("2025-01-07 00:00:00")
counterInfo = {'counterId': 7, 'startDate': startDate, 'endDate': endDate})
retVal, msg = system.kanoa.event.deleteCounterEvents(counterInfo, userId)