Skip to main content

system.kanoa.asset.unlinkAssetMode

Requires kanoaOPS license

Description

Unlinks a mode from an asset. Checks to see if this mode/asset combo has been stored in the modeEvent table and disables it if it has, otherwise deletes it.

Syntax

unlinkAssetMode(modeAssetLinkId)

Parameters:
  • modeAssetLinkId (int): The ID of the modeAssetLink

  • Returns:
  • retVal (int): # of records modified
  • msg (string): 'Deleted', 'Disabled' or error message
  • Code Examples

    # Example Usage:
    result = system.kanoa.asset.unlinkAssetMode(123)
    print(f"Result: {result}")