Click or drag to resize

TrackingServicesRecordNewItemData Method

Records a collection of new data against an open transaction and its related Item(s). This includes quality, test, and parametric data such as Defects, Symptoms, and Measurements. If the ItemId and/or ItemUID properties of the TrackedDataItem are set to valid values, the TrackedDataItem will be recorded against the specified Item. If these properties are left null and/or blank, then the TrackedDataItem will be recorded against all Items associated with the transaction. If the ItemId and/or ItemUID properties are used, and they represent Items not associated with the specified transaction, the method will fail.

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<TrackedDataItem> RecordNewItemData(
	Guid sessionId,
	Guid transactionId,
	TrackedDataItem[] newDataItems
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
transactionId
Type: SystemGuid
The transaction Id returned by the TransactionId property of the StartResult.
newDataItems
Type: FactoryLogix.xTend.DataObjectsTrackedDataItem
A list of data objects derived from TrackedDataItem representing the new data to be recorded.

Return Value

Type: IEnumerableTrackedDataItem
A list of objects derived from TrackedDataItem representing the newly recorded data, with valid Id properties. Should an error occur during data recording for a sub-set of the newDataItems, the returned list may be smaller than the original
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
TransactionNotFoundExceptionThrown if the transactionId parameter is invalid.
ItemExceptionThrown if one or more of the newDataItems references an invalid Item"/>, or an Item not associated with this transaction.
See Also