Click or drag to resize

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.242.0.0 (8.242.0.0)
Syntax
public WorkOrder CreateWorkOrder(
	Guid sessionId,
	WorkOrder newOrder
)

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: WorkOrder
A fully populated WorkOrder object representing the new order, with valid Id property.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
CustomerDoesNotExistsExceptionThrown when a Customer is not found.
VendorDoesNotExistsExceptionThrown when a Vendor is not found.
WorkOrderExceptionThrown when a Work order cannot be created such as duplicating the name.
See Also