Click or drag to resize

BatchServicesDeleteWorkOrder Method

Deletes a WorkOrder given its 123-bit unique identifier (Id property). WorkOrders may not be deleted if there are production units, batches, or materials associated with them, or if their are any tracking history records recorded against them.

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 DeleteWorkOrder(
	Guid sessionId,
	Guid orderId
)

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).
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
WorkOrderNotFoundExceptionThrown if an order with matching Id property is not found in the system.
RelatedItemExceptionThrown if the batch cannot be deleted becuase it is associated to production units, batches, or materials.
See Also