system.mes.productionOrder.getBillOfMaterialsForOrder
Description
Retrieves the Production Order Bill of Materials record associated with a production order ID or Name.
Syntax
system.mes.productionOrder.getBillOfMaterialsForOrder(productionOrderIdOrName)
Parameters
Parameter | Type | Nullable | Description |
---|---|---|---|
productionOrderIdOrName | String | False | The ID or Name of the production order to retrieve the bill of materials. |
Returns
Returns a JSON representation of the bill of materials associated with the given production order.
Code Examples
# Retrieves the bill of materials for a given production order
bill_of_materials = system.mes.productionOrder.getBillOfMaterialsForOrder('01JPMTA7K3-E8EHA4MD-7C304P4Z')
# Output the bill of materials
print(bill_of_materials)