Click or drag to resize

BatchServicesUpdateWorkOrderLineItems Method

Creates or updates the line items associated with a particular material purchase order (represented by a WorkOrder of type ReceivingOrder). Any existing line items will be deleted when this method is called, and replaced by the specified line items.

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 UpdateWorkOrderLineItems(
	Guid sessionId,
	Guid orderId,
	OrderLineItem[] lineItems
)

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 these line items should be applied.
lineItems
Type: FactoryLogix.xTend.DataObjectsOrderLineItem
A list of OrderLineItems to be applied to the WorkOrder
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
WorkOrderNotFoundExceptionA WorkOrder of type Receiving order matching the specified orderId parameter was not found in the system.
WorkOrderLineItemEditExceptionOne or more work order line items cannot be edited due to either changing the part and materials have already been received or the quantity is being changed to be less than what has already been received.
NotFoundExceptionOne or more parts or work order items were not found.
See Also