Skip to main content

system.kanoa.item.updateItemField

This function requires KanoaOPS module

Description

Updates an item's field value (kanoaOPS).

Syntax

updateItemField(itemId, field, value, userId)
  • Parameters
      itemId (Integer) - ID of the item to update.
      field (String) - Field name to update (e.g., 'itemName', 'itemDescription', 'itemClassId', 'itemColor', 'enabled').
      value (PyObject) - Value corresponding to the field data type.
      userId (Integer) - User ID.
  • Returns
      itemId (Integer) - ID of the updated item.
  • Code Examples

    # Example Usage:
    updatedItemId = system.kanoa.item.updateItemField(1, 'itemName', 'NewName', 123)