system.kanoa.event.checkItemInfo
Description
This function checks to see if this work order or item exists, and if not will create the workorder and item and add an item-asset link. It is used when a tag value changes for mode, work order, or product.Syntax
checkItemInfo(assetId, workOrderName, itemName, userId)- assetId (int)
- workOrderName (string)
- itemName (string)
- userId (int)
workOrderId, itemId (tuple).
Code Example
assetId = 123
workOrderName = "WO123"
itemName = "ItemXYZ"
userId = 5
workOrderId, itemId = system.kanoa.event.checkItemInfo(assetId, workOrderName, itemName, userId)