Skip to end of metadata
Go to start of metadata
Description

Gets a list of work orders.

Syntax

system.mes.workorder.getMESWorkOrders(workOrderFilter)


  • Parameters

MESWorkOrderFilter workOrderFilter - A work order filter.

  • Returns

List<MESWorkOrder> - A list of MESWorkOrder objects.

  • Scope

All

Code Examples
Code Snippet
##Create a work order filter.  Get work orders based on the filter.
##Print the list and the work order object in the list.
woName = "0752665525"
woFilter = system.mes.workorder.createMESWorkOrderFilter()
woFilter.setWorkOrderNameFilter(woName)
results = system.mes.workorder.getMESWorkOrders(woFilter)
print results
for result in results:
	print result 
Output
Size 1
WorkOrder (a289e509-656b-4914-a597-386e7cf7376b, 0752665525, 0 parents, 0 children, 0 custom properties, 0 complex properties) 
  • No labels