Click or drag to resize

ItemServicesSplitItem Method

Divides the specified Item into two identical Items. The sum of quantity of the two Items will equal the quantity of the orignal item.

Namespace:  FactoryLogix.xTend.Logistics
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public Item SplitItem(
	Guid sessionId,
	Guid itemId,
	double newItemQuantity
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
itemId
Type: SystemGuid
An Item object representing the new item to be processed.
newItemQuantity
Type: SystemDouble
The quantity for the newly created Item. This quantity will be subtracted from the original Item's quantity.

Return Value

Type: Item
An Item object representing the newly created Item that was split from the Item identified by the itemId parameter.
Exceptions
ExceptionCondition
ArgumentExceptionThrown if some of provided parameters is invalid.
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
NotFoundExceptionThrown if an Item matching the itemId parameter does not exist.
ItemExceptionThrown if the newItemQuantity parameter specifies a value greater than the original value of the Item.
See Also