Table
RetailPackageLines
Package lines
Lists the items in a retail package. The key is the package, item, inventory dimension and unit. Each line holds a quantity and can name a product variant.
- Table name
RetailPackageLines- Module
Commerce merchandising- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
LineIdx- Replacement key
None- Key fields
PackageId, ItemId, InventDimId, PurchUnit- Model
Foundation
Fields (12)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PackageIdPackage that the line belongs to. | StringRetailPackageId | Yes | RetailPackageTable.PackageId | RetailPackageLinesEntity |
ItemIdItem in the package. Points to an item record. | String (20)ItemId | Yes | InventTable.ItemId | RetailPackageLinesEntity |
InventDimIdInventory dimension combination for the item. Points to an inventory dimension record. | String (20)InventDimId | Yes | InventDim.inventDimId | RetailPackageLinesEntity |
PurchUnitUnit in which the quantity is given. Points to a unit record. | StringPurchUnit | Yes | UnitOfMeasure.Symbol | RetailPackageLinesEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
LineNumNumber of the line within the package. | RealLineNum | No | RetailPackageLinesEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
QtyQuantity of the item in the package. | RealQty | No | RetailPackageLinesEntity | |
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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
VariantIdProduct variant of the item, where one applies. | StringRetailVariantId | No | RetailPackageLinesEntity |
Indexes (1)
LineIdxPrimary indexPackageId,ItemId,InventDimId,PurchUnitUnique, alternate key.
Relations (5)
Each relation joins RetailPackageLines to another table on the fields shown.
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany RetailPackageLines records → exactly one InventDim record
InventDimCombination→InventDimCombinationJoin on
VariantId = InventDimCombination.RetailVariantIdMany RetailPackageLines records → zero or one InventDimCombination record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany RetailPackageLines records → exactly one InventTable record
RetailPackageTable→RetailPackageTableJoin on
PackageId = RetailPackageTable.PackageIdMany RetailPackageLines records → exactly one RetailPackageTable record
UnitOfMeasure→UnitOfMeasureJoin on
PurchUnit = UnitOfMeasure.SymbolMany RetailPackageLines records → zero or one UnitOfMeasure record
Get this data out
Tables are not exposed directly. These public entities read from RetailPackageLines; use one of them in Power BI, Power Platform or a data management project.
RetailPackageLinesEntity· 7 fields from this table
Need help with RetailPackageLines in a report, an integration or a migration? Talk to Dr Dynamics.