Skip to main content

system.kanoa.asset.setAssetStateLinkCode

This function requires KanoaOPS module

Description

This function updates the stateCode for an asset. (kanoaOPS)

Syntax

setAssetStateLinkCode(stateAssetLinkId, stateCode, userId)
  • Parameters
      stateAssetLinkId (int) - The ID of the state asset link
      stateCode (int) - The new state code to be set
      userId (int) - User ID
  • Returns
      # of records modified (int)
  • Code Examples

    # Example Usage:
    modified_records, error_msg = system.kanoa.asset.setAssetStateLinkCode(123, 456, 789)