Skip to main content

system.mes.productionOrder.getProductionOrderReferences

Description

Retrieves a list of references to a Production Orders record by its ID or Name.

Syntax

system.mes.productionOrder.getProductionOrderReferences(productionOrderIdOrName)

Parameters

ParameterTypeDescription
productionOrderIdOrNameStringThe ID or name of the production order 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 production order.

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 production order.

Code Examples

# Retrieve the references for the production order specified
production_order_references = system.mes.productionOrder.getProductionOrderReferences('01JPMTA7K3-E8EHA4MD-7C304P4Z')

# Output the production order references
print(production_order_references)