Skip to main content

system.kanoa.asset.updateCounter

This function requires KanoaOPS module

Description

Updates a counter (kanoaOPS).

Syntax

updateCounter(countInfo, userId)
  • Parameters
      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.
  • Returns
      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)