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 descriptionType / EDT / enumMandatoryReferencesIn public entities
PackageIdPackage that the line belongs to.String
RetailPackageId
YesRetailPackageTable.PackageIdRetailPackageLinesEntity
ItemIdItem in the package. Points to an item record.String (20)
ItemId
YesInventTable.ItemIdRetailPackageLinesEntity
InventDimIdInventory dimension combination for the item. Points to an inventory dimension record.String (20)
InventDimId
YesInventDim.inventDimIdRetailPackageLinesEntity
PurchUnitUnit in which the quantity is given. Points to a unit record.String
PurchUnit
YesUnitOfMeasure.SymbolRetailPackageLinesEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
LineNumNumber of the line within the package.Real
LineNum
NoRetailPackageLinesEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QtyQuantity of the item in the package.Real
Qty
NoRetailPackageLinesEntity
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
VariantIdProduct variant of the item, where one applies.String
RetailVariantId
NoRetailPackageLinesEntity

Indexes (1)

Relations (5)

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

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId

    Many RetailPackageLines records → exactly one InventDim record

  • InventDimCombination → InventDimCombination

    Join on VariantId = InventDimCombination.RetailVariantId

    Many RetailPackageLines records → zero or one InventDimCombination record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many RetailPackageLines records → exactly one InventTable record

  • RetailPackageTable → RetailPackageTable

    Join on PackageId = RetailPackageTable.PackageId

    Many RetailPackageLines records → exactly one RetailPackageTable record

  • UnitOfMeasure → UnitOfMeasure

    Join on PurchUnit = UnitOfMeasure.Symbol

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

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

Email sales@drdynamics.co.uk