Skip to main content

system.kanoa.asset.updateAssetModeField

Requires kanoaOPS license

Description

Updates the field with the passed value for the assetModeLink.

Syntax

updateAssetModeField(modeAssetLinkId, field, value, userId)

Parameters:
  • modeAssetLinkId (int): The ID of the assetModeLink to be updated.
  • field (str): The field to be updated.
  • value (str): The value to set for the specified field.
  • userId (int): The ID of the user making the update.

  • Returns:
  • Number of records modified (int)
  • Message (str)
  • Code Examples

    # Usage example
    records_modified, message = system.kanoa.asset.updateAssetModeField(modeAssetLinkId=123, field='fieldName', value='fieldValue', userId=456)

    if records_modified is not None:
    print(f"Successfully updated {records_modified} records.")
    else:
    print(f"Update failed: {message}")