Skip to main content

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

ParameterTypeDescription
idString (ULID)The ID of the bill of materials to retrieve.

Returns

Returns a list of JSON objects. Each JSON object has the following properties:

NameTypeDescription
tableNameStringThe name of the table that the reference is in.
referencesList<JSON Object>List of JSON objects corresponding to references to the bill of materials.

The JSON Objects in references has the following properties:

NameTypeDescription
fkColNameStringThe name of the foreign key column.
idString (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)