Skip to main content

system.kanoa.asset.updateStateField

This function requires KanoaOPS module

Description

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

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
      # of records modified (int)
  • Code Examples

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