Skip to main content

system.kanoa.asset.setAssetStateLinkCode

Requires kanoaOPS license

Description

This function updates the stateCode for an asset.

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)