system.kanoa.event.deleteCounterEvents(counterInfo)
Delete counts event based on the passed in counterInfo.
Parameters
counterInfo Dictionary
| - counterId | Integer | |
| - endDate | DateTime | |
| - itemId | Integer | |
| - itemStateId | Integer | |
| - startDate | DateTime | |
| - workOrderId | Integer |
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)