Skip to main content

system.kanoa.asset.enableModeAssetLink

Requires kanoaOPS license

Description

Update the modeAssetLink enabled mode. If the mode is disabled, we will not update the link. The mode needs to be enabled first.

Syntax

enableModeAssetLink(modeAssetLinkId, enabled)

Parameters:
  • modeAssetLinkId (int): The ID of the modeAssetLink
  • enabled (boolean): Indicates whether to enable or disable the modeAssetLink

  • Returns:
  • # of records modified (int)
  • Code Examples

    # Example Usage:
    records_modified = system.kanoa.asset.enableModeAssetLink(123, True)
    print(f"{records_modified} records modified for modeAssetLink with ID 123.")