Skip to main content

system.mes.productionOrder.getAllProductionOrders

Description

Retrieves a list of all Production Orders records in the system.

Syntax

system.mes.productionOrder.getAllProductionOrders()

Parameters

ParameterTypeNullableDescription
None--This method does not take any parameters.

Returns

Returns a list of JSON objects representing all production orders.

NameTypeDescription
nameStringThe name of the production order.
productIdString (ULID)The ULID of the material produce to be produced.
locationIdString (ULID)The ULID of the location associated with this production order.
statusStringThe status of the production order. (e.g., IDLE, SCHEDULED, RUNNING, PAUSED, STOPPED, CLOSED, CANCELLED).
schedulePriorityStringThe schedule priority of the production order (e.g., LOW, NORMAL, HIGH, URGENT).
quantityDoubleThe total quantity to be produced in this production order.
quantityProducedDoubleThe quantity that has been already produced in this production order.
quantityScheduledDoubleThe quantity that has been scheduled to be produced in this production order.
startDateInstantThe date this production order started.
endDateInstantThe date this production order ended.
dueDateInstantThe date this production order is due.
unitOfMeasureIdString (ULID)The ULID of the unit of measure for this production order.
shiftRecordIdString (ULID)The ULID of the shift the production order started in.
idString (ULID)The ULID of the production order.
notesStringNotes related to the production order.
enabledBooleanIndicates if the production order is active and enabled.
spare1StringAdditional field for user-defined context.
spare2StringAdditional field for user-defined context.
spare3StringAdditional field for user-defined context.

Code Examples

# Retrieve all production orders
allProductionOrders = system.mes.productionOrder.getAllProductionOrders()

# Output the list of production orders
print(allProductionOrders)