system.kanoa.asset.updateCounter
Description
Updates a counter (kanoaOPS).Syntax
updateCounter(countInfo, userId)- countInfo (dict) - A dictionary containing counter information: - 'assetId' (int): ID of the asset. - 'counterName' (str): Name of the counter. - 'counterTypeId' (int): ID of the counter type. - 'counterId' (int): ID of the counter to be updated.
- userId (int) - User ID.
- records modified (int).
Code Examples
# Example Usage:
count_info = {'assetId': 18, 'counterName': 'caps', 'counterTypeId': 1, 'counterId': 10}
user_id = 123
modified_records = system.kanoa.asset.updateCounter(count_info, user_id)