Skip to main content

system.kanoa.order.addProductionOrderMetaData

This function is not part of a class and can be used independently.

Description

Adds a production order meta data value (kanoaOPS).

Syntax

addProductionOrderMetaData(workOrderMetaInfo, userId)
  • Parameters:
      workOrderMetaInfo: string - i.e., {'workOrderId': 45, 'metaDataName' : 'apiBody', 'metaDataValue': some value}
      userId: int
  • Returns:
      workOrderMetaDataId - int
  • Code Example

    # Example Usage:
    workOrderMetaInfo = {'workOrderId': 45, 'metaDataName' : 'apiBody', 'metaDataValue': 'some value'}
    userId = 123
    workOrderMetaDataId = system.kanoa.order.addProductionOrderMetaData(workOrderMetaInfo, userId)