Click or drag to resize

ItemServicesCreateItem Method

Creates a new 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 CreateItem(
	Guid sessionId,
	Item newItem
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
newItem
Type: FactoryLogix.xTend.DataObjectsItem
An Item object representing the new item to be created. The UID, PartNumber, and Classification properties must, at minimum, be populated with valid values.

Return Value

Type: Item
An object of type Item representing the newly created item, with a valid Id property.
Exceptions
ExceptionCondition
ArgumentExceptionThrown if the newItem is invalid.
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
AlreadyExistsExceptionThrown if an Item with the specified UID and classification already exists in the system.
MissingInformationExceptionThrown if the newItem parameter does not contain the required information.
See Also