Skip to main content

system.kanoa.asset.enableAssetStateLink

Requires kanoaOPS license

Description

Updates the stateAssetLink enabled state. If the state is disabled, it will not update the link. The state needs to be enabled first.

Syntax

enableAssetStateLink(stateAssetLinkId, enabled)

Parameters:
  • stateAssetLinkId (int): The ID of the state asset link
  • enabled (boolean): The desired state of the link

  • Returns:
  • # of records modified (int)
  • msg (string): None if success
  • Code Examples

    # Example Usage:
    modified_records = system.kanoa.asset.enableAssetStateLink(123, True)