Skip to main content

system.kanoa.asset.setAssetModeCode

Requires kanoaOPS license

Description

Updates the mode code for an asset/mode combo.

Syntax

setAssetModeCode(modeAssetLinkId, modeCode)

Parameters:
  • modeAssetLinkId (int): The ID of the modeAssetLink
  • modeCode (int): The new mode code

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

    # Example Usage:
    records_modified, error_msg = system.kanoa.asset.setAssetModeCode(123, 456)
    if records_modified is not None:
    print(f"{records_modified} records modified for modeAssetLink with ID 123.")
    else:
    print(f"Error: {error_msg}")