Table
InventBatch
Batches
Holds batches of items. Each batch is identified by an item and a batch number. It stores dates such as manufacturing, expiration and best before, plus vendor batch details and country or region of origin.
- Table name
InventBatch- Module
Inventory- Table group
WorksheetHeader- Table type
Regular- Data per company
Yes- Configuration key
LogisticsBasic- Primary index
itemBatchIdx- Replacement key
None- Key fields
itemId, inventBatchId- Model
Foundation
Fields (28)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
itemIdThe item the batch belongs to. Points to the item table. | String (20)ItemId | Yes | InventTable.ItemId | InventItemBatchEntity |
inventBatchIdThe batch number. | String (20)InventBatchId | Yes | InventItemBatchEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
descriptionA free text note about the batch. | String (-1)InventBatchTxt | No | InventItemBatchEntity | |
expDateThe date the batch expires. | DateInventBatchExpDate | No | InventItemBatchEntityWHSShipmentReceiptTransactionInventoryDimensionV2EntityWHSShipmentReceiptTransactionInventoryDimensionEntity | |
ManufacturerIdThe party that made the batch. Points to the global address book. | Int64CostBatchSyncManufacturerId | No | DirPartyTable.RecId | None |
OriginManufacturerIdThe party where the batch originally came from. Points to the global address book. | Int64CostBatchSyncOriginManufacturerId | No | DirPartyTable.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PdsBestBeforeDateThe best before date of the batch. | DatePdsBestBeforeDate | No | InventItemBatchEntity | |
PdsCountryOfOrigin1The first country or region of origin. | StringPdsCountryOfOrigin1 | No | LogisticsAddressCountryRegion.CountryRegionId | InventItemBatchEntity |
PdsCountryOfOrigin2The second country or region of origin. | StringPdsCountryOfOrigin2 | No | LogisticsAddressCountryRegion.CountryRegionId | InventItemBatchEntity |
PdsDispositionCodeThe disposition code of the batch. Points to the batch disposition master. | StringPdsDispositionCode | No | PdsDispositionMaster.DispositionCode | InventItemBatchEntity |
PdsFinishedGoodsDateTestedThe date the batch was last tested. | DatePdsFinishedGoodsDateTested | No | InventItemBatchEntity | |
PDSInheritBatchAttribWhether the batch takes its attributes from another source. | EnumPDSInheritBatchAttribNoYes (enum) | No | InventItemBatchEntity | |
PDSInheritedShelfLifeWhether the batch takes its shelf life from the material. | EnumPDSInheritShelfLifeNoYes (enum) | No | InventItemBatchEntity | |
PdsSameLotWhether the same batch must be selected. | EnumPdsSameLotNoYes (enum) | No | InventItemBatchEntity | |
PdsShelfAdviceDateThe shelf advice date of the batch. | DatePdsShelfAdviceDate | No | InventItemBatchEntity | |
PdsUseVendBatchDateWhether the vendor batch date is used as the manufacturing date. | EnumPdsUseVendBatchDateNoYes (enum) | No | InventItemBatchEntity | |
PdsUseVendBatchExpWhether the vendor expiry date is used as the expiration date. | EnumPdsUseVendBatchExpNoYes (enum) | No | InventItemBatchEntity | |
PdsVendBatchDateThe batch date given by the vendor. | DatePdsVendBatchDate | No | InventItemBatchEntity | |
PdsVendBatchIdThe batch number given by the vendor. | String (20)PdsVendBatchId | No | InventItemBatchEntity | |
PdsVendExpiryDateThe expiry date given by the vendor. | DatePdsVendExpiryDate | No | InventItemBatchEntity | |
prodDateThe date the batch was manufactured. | DateInventBatchProdDate | No | InventItemBatchEntityWHSShipmentReceiptTransactionInventoryDimensionV2EntityWHSShipmentReceiptTransactionInventoryDimensionEntity | |
QMSCertOfAnalysisQualityOrderIdThe quality order that holds the certificate of analysis. Points to the quality order table. | String (15)InventQualityOrderId | No | InventQualityOrderTable.QualityOrderId | None |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (4)
batchIdxNot unique.
itemBatchIdxPrimary indexUnique, alternate key.
ItemVendBatchIdxNot unique.
ItemExpDateIdxitemId,expDate,inventBatchIdNot unique.
Relations (7)
Each relation joins InventBatch to another table on the fields shown.
InventTable→InventTableJoin on
itemId = InventTable.ItemIdMany InventBatch records → exactly one InventTable record
PdsCountryOfOrigin1→LogisticsAddressCountryRegionJoin on
PdsCountryOfOrigin1 = LogisticsAddressCountryRegion.CountryRegionIdMany InventBatch records → zero or one LogisticsAddressCountryRegion record
PdsCountryOfOrigin2→LogisticsAddressCountryRegionJoin on
PdsCountryOfOrigin2 = LogisticsAddressCountryRegion.CountryRegionIdMany InventBatch records → zero or one LogisticsAddressCountryRegion record
PdsDispositionMaster→PdsDispositionMasterJoin on
PdsDispositionCode = PdsDispositionMaster.DispositionCodeMany InventBatch records → zero or one PdsDispositionMaster record
QMSInventQualityOrderTable→InventQualityOrderTableJoin on
QMSCertOfAnalysisQualityOrderId = InventQualityOrderTable.QualityOrderId,itemId = InventQualityOrderTable.ItemIdMany InventBatch records → zero or one InventQualityOrderTable record
DirPartyTable_ManufacturerId→DirPartyTableJoin on
ManufacturerId = DirPartyTable.RecIdMany InventBatch records → exactly one DirPartyTable record
DirPartyTable_OriginManufacturerId→DirPartyTableJoin on
OriginManufacturerId = DirPartyTable.RecIdMany InventBatch records → exactly one DirPartyTable record
Get this data out
Tables are not exposed directly. These public entities read from InventBatch; use one of them in Power BI, Power Platform or a data management project.
InventItemBatchEntity· 19 fields from this tableWHSShipmentReceiptTransactionInventoryDimensionV2Entity· 2 fields from this tableWHSShipmentReceiptTransactionInventoryDimensionEntity· 2 fields from this table
Need help with InventBatch in a report, an integration or a migration? Talk to Dr Dynamics.