Skip to main content

system.kanoa.order.updateProductionOrderMetaData

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

Description

Update a production order meta data (kanoaOPS).

Syntax

updateProductionOrderMetaData(workOrderMetaInfo, userId)
  • Parameters:
      workOrderMetaInfo: string - i.e., {'workorderMetaDataId': 34, 'workOrderId': 45, 'metaDataName' : 'apiBody', 'metaDataValue': some value}
      userId: int
  • Returns:
      # of records modified - int
  • Code Example

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