Skip to main content

system.kanoa.event.checkItemInfo

This function requires KanoaOPS module

Description

When a tag value changes for mode, work order, or product, check if this work order or item exists, and if not, create it.

Syntax

checkItemInfo(assetId, workOrderName, itemName, userId)
  • Parameters
      assetId (int) - Asset ID.
      workOrderName (string) - Work order name.
      itemName (string) - Item name.
      userId (int) - User ID.
  • Returns
    workOrderId, itemId (tuple).
  • Code Example

    # Example Usage:
    system.kanoa.event.checkItemInfo(assetId=123, workOrderName="WO123", itemName="ItemXYZ", userId=999)