Click or drag to resize

BatchServicesAddBatchToOrder Method

Associates an existing Batch to an existing WorkOrder. The type of the Batch must match the type of the WorkOrder. So, for example, only Receiving Batches may be associated to Receiving type WorkOrders, etc.

Namespace:  FactoryLogix.xTend.Production
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public void AddBatchToOrder(
	Guid sessionId,
	Guid orderId,
	Guid batchId
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
orderId
Type: SystemGuid
The 128-bit unique identifier of the WorkOrder (Id property) to which the Batch should be associated.
batchId
Type: SystemGuid
The 128-bit unique identifier of the Batch (Id property) to be associated.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
BatchNotFoundExceptionA Batch matching the specified batchId parameter was not found in the system.
WorkOrderNotFoundExceptionA WorkOrder matching the specified batchId parameter was not found in the system.
InvalidBatchTypeExceptionThe type of Batch is invalid for the WorkOrder type.
NotFoundExceptionThe receiving work order does not have a work order line item matching the Batch part number or the Batch quantity exceeds the line item quantity.
See Also