Click or drag to resize

TrackingServicesInitializeMaterials Method

Initializes multiple new materials (Item) into a Batch. If the batchId is invalid, or any of the UID's specified are not unique, none of the Items will be initialized.

Namespace:  FactoryLogix.xTend.Production
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public IEnumerable<Item> InitializeMaterials(
	Guid sessionId,
	Guid batchId,
	InitializationItem[] UIDs
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
batchId
Type: SystemGuid
The 128-bit unique identifier (Id property) of the Batch.
UIDs
Type: FactoryLogix.xTend.DataObjectsInitializationItem
A list of text-based unique identifiers (UID's) for the new Items.

Return Value

Type: IEnumerableItem
A list of Item objects representing the newly created items that are now associated with the specified Batch.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
AlreadyExistsExceptionThe specified UID already exists, and cannot be created.
BatchNotFoundExceptionA Batch with the specified batchId cannot be found.
See Also