system.kanoa.event.checkforDuplicateModeEvents
Description
Checks for duplicate contiguous modeEvent entries and removes them.Syntax
checkforDuplicateModeEvents(assetId, fromDate, toDate)- assetId - Asset ID.
- fromDate (datetime) - Start timestamp.
- toDate (datetime) - End timestamp.
Records modified (int).
Code Example
# Example Usage:
assetId = 123
fromDate = timestamp1
toDate = timestamp2
recordsModified = system.kanoa.event.checkforDuplicateModeEvents(assetId, fromDate, toDate)