Click or drag to resize

TrackingServicesInitializeMaterial Method

Initializes a material (Item) into a Batch.

Namespace:  FactoryLogix.xTend.Production
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public Item InitializeMaterial(
	Guid sessionId,
	Guid batchId,
	string UID,
	double quantity
)

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.
UID
Type: SystemString
A text-based unique identifier (UID) for the new Item.
quantity
Type: SystemDouble
The quanity of materials to be initialized.

Return Value

Type: Item
An Item object representing the newly created item that is 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