Table

RetailSalesLine

Retail sales line

Adds retail details to a sales order line. It holds discount amounts and percentages, fulfilment status and quantities, pickup times, price override and info code data. It links to the sales line, a catalog and a return reason code. The metadata lists no key.

Table name
RetailSalesLine
Module
Commerce transactions and orders
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (43)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
BlockItemReturnShows whether returns of the item are blocked.Enum
RetailBlockItemReturn
NoYes (enum)
NoRetailSalesLineBiEntity
CatalogCatalog that the line relates to.Int64
CatalogRefRecId
NoCatalog.RecIdRetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoRetailSalesLineBiEntity
FulfillmentStatusFulfilment stage of the line, from pending and picking through packed to invoiced.Enum
RetailFulfillmentLineStatus (enum)
NoRetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity
FulfillmentStoreIdNumber of the store that fulfils the line.String
RetailStoreId
NoRetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity
InfocodeIdNumber of the info code attached to the line.String
RetailInfocodeId
NoRetailSalesLineBiEntity
InformationFree text recorded for the info code, up to 100 characters.String (100)
RetailInfocodeInformation
NoRetailSalesLineBiEntity
InventTransIdLot ID of the sales line.String (20)
TradeInventTransId
NoRetailSalesLineBiEntity
IsPriceKeyedInShows whether the price was typed in by hand.Enum
RetailPriceChange
NoYes (enum)
NoRetailSalesLineBiEntity
IsPriceLockedShows whether the line price is locked.Enum
RetailPriceLock
NoYes (enum)
NoRetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity
IsPriceOverriddenShows whether the price was changed from the original.Enum
RetailPriceChange
NoYes (enum)
NoRetailSalesLineBiEntity
LineDscAmountDiscount amount on the line.Real
DiscAmount
NoRetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity
LineManualDiscountAmountDiscount amount entered manually on the line.Real
DiscAmount
NoRetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity
LineManualDiscountPercentageDiscount percentage entered manually on the line.Real
DiscPct
NoRetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity
LinePercentageDiscountPercentage discount on the line.Real
DiscPct
NoRetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity
ListingIdID of the channel listing for the product on the line.String (50)
RetailChannelListingId
NoRetailSalesLineBiEntity
OriginalPriceSales price of the item before any change.Real
SalesPrice
NoRetailSalesLineBiEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PeriodicDiscountAmount of periodic discount on the line.Real
DiscAmount
NoRetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity
PeriodicPercentageDiscountPercentage of periodic discount on the line.Real
DiscPct
NoRetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity
PickupEndTimeEnd of the time slot for pickup.Time
RetailPickupTimeslotEndTime
NoRetailSalesLineBiEntity
PickupStartTimeStart of the time slot for pickup.Time
RetailPickupTimeslotStartTime
NoRetailSalesLineBiEntity
PriceOverrideReasonCodeReason code given for overriding the price.String
RetailInformationSubcodeId
NoRetailSalesLineBiEntity
QuantityColumnsVersionVersion of the quantity columns used on the line: V0 or V1.Enum
RetailSalesLineQuantityColumnsVersion (enum)
NoRetailSalesLineBiEntity
QuantityInvoicedQuantity that has been invoiced.Real
InventQty
NoRetailSalesLineBiEntity
QuantityNotProcessedQuantity that has not yet been processed.Real
InventQty
NoRetailSalesLineBiEntity
QuantityPackedQuantity packed so far.Real
InventQty
NoRetailSalesLineBiEntity
QuantityPhysicallyReservedQuantity that is reserved.Real
InventQty
NoRetailSalesLineBiEntity
QuantityPickedQuantity picked so far.Real
InventQty
NoRetailSalesLineBiEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoRetailSalesLineBiEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoRetailSalesLineBiEntity
RetailProductListLineUpdateIdID of the related product list line.String (40)
RetailProductListLineId
NoRetailSalesLineBiEntity
ReturnReasonCodeIdReturn reason code given to the line.String
ReturnReasonCodeId
NoReturnReasonCode.ReasonCodeIdRetailSalesLineBiEntity
SalesLineSystem record ID of the sales line that this record extends.Int64
RefRecId
NoSalesLine.RecIdRetailSalesLineBiEntity
SubInfocodeIdNumber of the subcode chosen under the info code.String
RetailInformationSubcodeId
NoRetailSalesLineBiEntity
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
TaxExemptPriceInclusiveOriginalPriceLine price as it was before tax exemption, for prices that include tax.Real
RetailTaxExemptOriginalPrice
NoRetailSalesLineBiEntity
TaxExemptPriceInclusiveReductionAmountAmount of tax removed by an exemption, for prices that include tax.Real
RetailTaxExemptReductionAmount
NoRetailSalesLineBiEntity
TenderDiscountDiscount amount linked to the tender type.Real
DiscAmount
NoRetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity
TenderDiscountPercentageDiscount percentage linked to the tender type.Real
DiscPct
NoRetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity
TotalDiscountTotal discount amount on the line.Real
DiscAmount
NoRetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity
TotalPctDiscountTotal discount as a percentage on the line.Real
DiscPct
NoRetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity

Indexes (4)

Relations (3)

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

  • Catalog → Catalog

    Join on Catalog = Catalog.RecId

    Many RetailSalesLine records → zero or one Catalog record

  • SalesLine1 → SalesLine

    Join on SalesLine = SalesLine.RecId

    Zero or one RetailSalesLine record → exactly one SalesLine record

  • ReturnReasonCode → ReturnReasonCode

    Join on ReturnReasonCodeId = ReturnReasonCode.ReasonCodeId

    Zero or one RetailSalesLine record → zero or one ReturnReasonCode record

Get this data out

Tables are not exposed directly. These public entities read from RetailSalesLine; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk