system.mes.productionOrder.getBillOfMaterialsItemReferences
Description
Retrieves a list of references to a Production Order Bill of Materials record by its ID.
Syntax
system.mes.productionOrder.getBillOfMaterialsItemReferences(id)
Parameters
Parameter | Type | Description |
---|---|---|
id | String (ULID) | The ID of the bill of materials to retrieve. |
Returns
Returns a list of JSON objects. Each JSON object has the following properties:
Name | Type | Description |
---|---|---|
tableName | String | The name of the table that the reference is in. |
references | List<JSON Object> | List of JSON objects corresponding to references to the bill of materials. |
The JSON Objects in references has the following properties:
Name | Type | Description |
---|---|---|
fkColName | String | The name of the foreign key column. |
id | String (ULID) | The ULID of the object that is referencing the bill of materials. |
Code Examples
# Retrieve the references for the bill of materials specified
bill_of_materials_references = system.mes.productionOrder.getBillOfMaterialsItemReferences('01JQ31CZMB-E7QA782B-5B521H4M')
# Output the bill of materials references
print(bill_of_materials_references)