BatchServicesCreateBatch Method |
Creates a new production or receiving batch (GRN). If the type of the new batch is
BatchType.Production,
then the ProcessId property must align with a valid production process for the new
Batch.
If the type of the new batch is
BatchType.Receiving, then the ProcessId property must align
with a valid receiving process for the new
Batch.
Namespace:
FactoryLogix.xTend.Production
Assembly:
FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.245.0.0 (8.245.0.0)
Syntax public Batch CreateBatch(
Guid sessionId,
Batch newBatch
)
Public Function CreateBatch (
sessionId As Guid,
newBatch As Batch
) As Batch
public:
virtual Batch^ CreateBatch(
Guid sessionId,
Batch^ newBatch
) sealed
abstract CreateBatch :
sessionId : Guid *
newBatch : Batch -> Batch
override CreateBatch :
sessionId : Guid *
newBatch : Batch -> Batch
Parameters
- sessionId
- Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method. - newBatch
- Type: FactoryLogix.xTend.DataObjectsBatch
A Batch object describing the properties of the new Batch.
Return Value
Type:
BatchA fully populated
Batch object representing the new batch, with valid Id property.
Exceptions See Also