Skip to main content

system.kanoa.asset.enableAssetStateLink

This function requires KanoaOPS module

Description

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

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)
  • Code Examples

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