Skip to main content

system.kanoa.event.updateStateEvent

This function requires KanoaOPS module

Description

Updates a stateEvent record.

Syntax

updateStateEvent(stateInfo, userId)
  • Parameters
      stateInfo - Dictionary {'assetStateId': 1, 'origAssetId': 2, 'stateCode': 4, 'origStateCode':7, 'note': 'updated', 'stateEventId': 567}.
      userId - User ID.
  • Returns
    stateInfo (dictionary).
  • Code Example

    # Example Usage:
    stateInfo = {'assetStateId': 1, 'origAssetId': 2, 'stateCode': 4, 'origStateCode':7, 'note': 'updated', 'stateEventId': 567}
    userId = 999
    stateInfo = system.kanoa.event.updateStateEvent(stateInfo, userId)