BatchServicesCreateWorkOrder Method |
Creates a new production or receiving work order (GRN). If the type of the new batch is
WorkOrderType.Production,
then the ProcessId property must align with a valid production process for the new
Batch.
Namespace:
FactoryLogix.xTend.Production
Assembly:
FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.245.0.0 (8.245.0.0)
Syntax public WorkOrder CreateWorkOrder(
Guid sessionId,
WorkOrder newOrder
)
Public Function CreateWorkOrder (
sessionId As Guid,
newOrder As WorkOrder
) As WorkOrder
public:
virtual WorkOrder^ CreateWorkOrder(
Guid sessionId,
WorkOrder^ newOrder
) sealed
abstract CreateWorkOrder :
sessionId : Guid *
newOrder : WorkOrder -> WorkOrder
override CreateWorkOrder :
sessionId : Guid *
newOrder : WorkOrder -> WorkOrder
Parameters
- sessionId
- Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method. - newOrder
- Type: FactoryLogix.xTend.DataObjectsWorkOrder
A WorkOrder object describing the properties of the new order.
Return Value
Type:
WorkOrderA fully populated
WorkOrder object representing the new order, with valid Id property.
Exceptions See Also