Click or drag to resize

BatchServicesUpdateBatch Method

Updates the editable properties of an existing Batch, such as priorty, status, etc..

Namespace:  FactoryLogix.xTend.Production
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public Batch UpdateBatch(
	Guid sessionId,
	Batch batch
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
batch
Type: FactoryLogix.xTend.DataObjectsBatch
A Batch object containing the modified information.

Return Value

Type: Batch
The updated Batch object.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
BatchNotFoundExceptionThrown if a batch with matching Id property is not found in the system.
ProcessDoesNotExistExceptionThrown if a Process referenced by the batch does not exist in the system, or is otherwise invalid.
BatchNotApprovedExceptionThrown when changing the Batch status to Active and it is not approved yet.
ProcessNotReleasedForProductionExceptionThrown if a Process referenced by the batch is not released for productoin.
BatchExceptionThrown when the Batch cannot be updated such as duplicating the name.
InvalidQuantityVerificationModeExceptionThrown when using a quantity verification mode that is not valid for the Batch type.
See Also