Click or drag to resize

ItemServicesCreateOrUpdateItem Method

Updates an existing Item, or creates a new one if an item matching the specified UID and classification does not already exist.

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 CreateOrUpdateItem(
	Guid sessionId,
	Item item
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
item
Type: FactoryLogix.xTend.DataObjectsItem
An Item object representing the new item to be created or updated. For new items, 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 updated or newly created item, with a valid Id property.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
AlreadyExistsExceptionThrown if an Item with the specified UID already exists in the system.
MissingInformationExceptionThrown if the item parameter does not contain the required information or attempting to change the UID or classification of an existing item.
NotFoundExceptionThrown if an Item matching the Id property of the item parameter does not exist.
See Also