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 descriptionType / EDT / enumMandatoryReferencesIn public entities
itemIdThe item the batch belongs to. Points to the item table.String (20)
ItemId
YesInventTable.ItemIdInventItemBatchEntity
inventBatchIdThe batch number.String (20)
InventBatchId
YesInventItemBatchEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
descriptionA free text note about the batch.String (-1)
InventBatchTxt
NoInventItemBatchEntity
expDateThe date the batch expires.Date
InventBatchExpDate
NoInventItemBatchEntityWHSShipmentReceiptTransactionInventoryDimensionV2EntityWHSShipmentReceiptTransactionInventoryDimensionEntity
ManufacturerIdThe party that made the batch. Points to the global address book.Int64
CostBatchSyncManufacturerId
NoDirPartyTable.RecIdNone
OriginManufacturerIdThe party where the batch originally came from. Points to the global address book.Int64
CostBatchSyncOriginManufacturerId
NoDirPartyTable.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PdsBestBeforeDateThe best before date of the batch.Date
PdsBestBeforeDate
NoInventItemBatchEntity
PdsCountryOfOrigin1The first country or region of origin.String
PdsCountryOfOrigin1
NoLogisticsAddressCountryRegion.CountryRegionIdInventItemBatchEntity
PdsCountryOfOrigin2The second country or region of origin.String
PdsCountryOfOrigin2
NoLogisticsAddressCountryRegion.CountryRegionIdInventItemBatchEntity
PdsDispositionCodeThe disposition code of the batch. Points to the batch disposition master.String
PdsDispositionCode
NoPdsDispositionMaster.DispositionCodeInventItemBatchEntity
PdsFinishedGoodsDateTestedThe date the batch was last tested.Date
PdsFinishedGoodsDateTested
NoInventItemBatchEntity
PDSInheritBatchAttribWhether the batch takes its attributes from another source.Enum
PDSInheritBatchAttrib
NoYes (enum)
NoInventItemBatchEntity
PDSInheritedShelfLifeWhether the batch takes its shelf life from the material.Enum
PDSInheritShelfLife
NoYes (enum)
NoInventItemBatchEntity
PdsSameLotWhether the same batch must be selected.Enum
PdsSameLot
NoYes (enum)
NoInventItemBatchEntity
PdsShelfAdviceDateThe shelf advice date of the batch.Date
PdsShelfAdviceDate
NoInventItemBatchEntity
PdsUseVendBatchDateWhether the vendor batch date is used as the manufacturing date.Enum
PdsUseVendBatchDate
NoYes (enum)
NoInventItemBatchEntity
PdsUseVendBatchExpWhether the vendor expiry date is used as the expiration date.Enum
PdsUseVendBatchExp
NoYes (enum)
NoInventItemBatchEntity
PdsVendBatchDateThe batch date given by the vendor.Date
PdsVendBatchDate
NoInventItemBatchEntity
PdsVendBatchIdThe batch number given by the vendor.String (20)
PdsVendBatchId
NoInventItemBatchEntity
PdsVendExpiryDateThe expiry date given by the vendor.Date
PdsVendExpiryDate
NoInventItemBatchEntity
prodDateThe date the batch was manufactured.Date
InventBatchProdDate
NoInventItemBatchEntityWHSShipmentReceiptTransactionInventoryDimensionV2EntityWHSShipmentReceiptTransactionInventoryDimensionEntity
QMSCertOfAnalysisQualityOrderIdThe quality order that holds the certificate of analysis. Points to the quality order table.String (15)
InventQualityOrderId
NoInventQualityOrderTable.QualityOrderIdNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (4)

Relations (7)

Each relation joins InventBatch to another table on the fields shown.

  • InventTable → InventTable

    Join on itemId = InventTable.ItemId

    Many InventBatch records → exactly one InventTable record

  • PdsCountryOfOrigin1 → LogisticsAddressCountryRegion

    Join on PdsCountryOfOrigin1 = LogisticsAddressCountryRegion.CountryRegionId

    Many InventBatch records → zero or one LogisticsAddressCountryRegion record

  • PdsCountryOfOrigin2 → LogisticsAddressCountryRegion

    Join on PdsCountryOfOrigin2 = LogisticsAddressCountryRegion.CountryRegionId

    Many InventBatch records → zero or one LogisticsAddressCountryRegion record

  • PdsDispositionMaster → PdsDispositionMaster

    Join on PdsDispositionCode = PdsDispositionMaster.DispositionCode

    Many InventBatch records → zero or one PdsDispositionMaster record

  • QMSInventQualityOrderTable → InventQualityOrderTable

    Join on QMSCertOfAnalysisQualityOrderId = InventQualityOrderTable.QualityOrderId, itemId = InventQualityOrderTable.ItemId

    Many InventBatch records → zero or one InventQualityOrderTable record

  • DirPartyTable_ManufacturerId → DirPartyTable

    Join on ManufacturerId = DirPartyTable.RecId

    Many InventBatch records → exactly one DirPartyTable record

  • DirPartyTable_OriginManufacturerId → DirPartyTable

    Join on OriginManufacturerId = DirPartyTable.RecId

    Many 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.

Need help with InventBatch in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk