Skip to main content

system.kanoa.asset.updateStateField

Requires kanoaOPS license

Description

Updates the passed field value for the given stateId. If the field is enabled, it will update the assetLink Table.

Syntax

updateStateField(stateId, field, value, userId)

Parameters:
  • stateId (int): The ID of the state
  • field (string): Name of the column
  • value (pyObject): The new value for the field
  • userId (int): User ID

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

    # Example Usage:
    modified_records = system.kanoa.asset.updateStateField(123, 'field_name', 'new_value', 789)