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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
BlockItemReturnShows whether returns of the item are blocked. | EnumRetailBlockItemReturnNoYes (enum) | No | RetailSalesLineBiEntity | |
CatalogCatalog that the line relates to. | Int64CatalogRefRecId | No | Catalog.RecId | RetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | RetailSalesLineBiEntity | |
FulfillmentStatusFulfilment stage of the line, from pending and picking through packed to invoiced. | EnumRetailFulfillmentLineStatus (enum) | No | RetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity | |
FulfillmentStoreIdNumber of the store that fulfils the line. | StringRetailStoreId | No | RetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity | |
InfocodeIdNumber of the info code attached to the line. | StringRetailInfocodeId | No | RetailSalesLineBiEntity | |
InformationFree text recorded for the info code, up to 100 characters. | String (100)RetailInfocodeInformation | No | RetailSalesLineBiEntity | |
InventTransIdLot ID of the sales line. | String (20)TradeInventTransId | No | RetailSalesLineBiEntity | |
IsPriceKeyedInShows whether the price was typed in by hand. | EnumRetailPriceChangeNoYes (enum) | No | RetailSalesLineBiEntity | |
IsPriceLockedShows whether the line price is locked. | EnumRetailPriceLockNoYes (enum) | No | RetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity | |
IsPriceOverriddenShows whether the price was changed from the original. | EnumRetailPriceChangeNoYes (enum) | No | RetailSalesLineBiEntity | |
LineDscAmountDiscount amount on the line. | RealDiscAmount | No | RetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity | |
LineManualDiscountAmountDiscount amount entered manually on the line. | RealDiscAmount | No | RetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity | |
LineManualDiscountPercentageDiscount percentage entered manually on the line. | RealDiscPct | No | RetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity | |
LinePercentageDiscountPercentage discount on the line. | RealDiscPct | No | RetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity | |
ListingIdID of the channel listing for the product on the line. | String (50)RetailChannelListingId | No | RetailSalesLineBiEntity | |
OriginalPriceSales price of the item before any change. | RealSalesPrice | No | RetailSalesLineBiEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PeriodicDiscountAmount of periodic discount on the line. | RealDiscAmount | No | RetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity | |
PeriodicPercentageDiscountPercentage of periodic discount on the line. | RealDiscPct | No | RetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity | |
PickupEndTimeEnd of the time slot for pickup. | TimeRetailPickupTimeslotEndTime | No | RetailSalesLineBiEntity | |
PickupStartTimeStart of the time slot for pickup. | TimeRetailPickupTimeslotStartTime | No | RetailSalesLineBiEntity | |
PriceOverrideReasonCodeReason code given for overriding the price. | StringRetailInformationSubcodeId | No | RetailSalesLineBiEntity | |
QuantityColumnsVersionVersion of the quantity columns used on the line: V0 or V1. | EnumRetailSalesLineQuantityColumnsVersion (enum) | No | RetailSalesLineBiEntity | |
QuantityInvoicedQuantity that has been invoiced. | RealInventQty | No | RetailSalesLineBiEntity | |
QuantityNotProcessedQuantity that has not yet been processed. | RealInventQty | No | RetailSalesLineBiEntity | |
QuantityPackedQuantity packed so far. | RealInventQty | No | RetailSalesLineBiEntity | |
QuantityPhysicallyReservedQuantity that is reserved. | RealInventQty | No | RetailSalesLineBiEntity | |
QuantityPickedQuantity picked so far. | RealInventQty | No | RetailSalesLineBiEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | RetailSalesLineBiEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | RetailSalesLineBiEntity | |
RetailProductListLineUpdateIdID of the related product list line. | String (40)RetailProductListLineId | No | RetailSalesLineBiEntity | |
ReturnReasonCodeIdReturn reason code given to the line. | StringReturnReasonCodeId | No | ReturnReasonCode.ReasonCodeId | RetailSalesLineBiEntity |
SalesLineSystem record ID of the sales line that this record extends. | Int64RefRecId | No | SalesLine.RecId | RetailSalesLineBiEntity |
SubInfocodeIdNumber of the subcode chosen under the info code. | StringRetailInformationSubcodeId | No | RetailSalesLineBiEntity | |
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 | |
TaxExemptPriceInclusiveOriginalPriceLine price as it was before tax exemption, for prices that include tax. | RealRetailTaxExemptOriginalPrice | No | RetailSalesLineBiEntity | |
TaxExemptPriceInclusiveReductionAmountAmount of tax removed by an exemption, for prices that include tax. | RealRetailTaxExemptReductionAmount | No | RetailSalesLineBiEntity | |
TenderDiscountDiscount amount linked to the tender type. | RealDiscAmount | No | RetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity | |
TenderDiscountPercentageDiscount percentage linked to the tender type. | RealDiscPct | No | RetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity | |
TotalDiscountTotal discount amount on the line. | RealDiscAmount | No | RetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity | |
TotalPctDiscountTotal discount as a percentage on the line. | RealDiscPct | No | RetailSalesLineBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity |
Indexes (4)
SalesLineIdxSalesLine,FulfillmentStatus,FulfillmentStoreId,PickupEndTime,PickupStartTime,QuantityPacked,QuantityPicked,QuantityInvoiced,QuantityNotProcessed,QuantityPhysicallyReserved,QuantityColumnsVersionUnique, alternate key.
FulfillmentStoreIdxFulfillmentStoreId,FulfillmentStatus,SalesLine,PickupStartTime,PickupEndTime,QuantityPicked,QuantityPacked,QuantityInvoiced,QuantityNotProcessed,QuantityPhysicallyReserved,QuantityColumnsVersionNot unique.
FulfillmentStatusIdxNot unique.
RetailProductListLineIdxNot unique.
Relations (3)
Each relation joins RetailSalesLine to another table on the fields shown.
Catalog→CatalogJoin on
Catalog = Catalog.RecIdMany RetailSalesLine records → zero or one Catalog record
SalesLine1→SalesLineJoin on
SalesLine = SalesLine.RecIdZero or one RetailSalesLine record → exactly one SalesLine record
ReturnReasonCode→ReturnReasonCodeJoin on
ReturnReasonCodeId = ReturnReasonCode.ReasonCodeIdZero 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.
RetailSalesLineBiEntity· 40 fields from this tableSalesOrderLineV3Entity· 14 fields from this tableSalesOrderLineV2Entity· 14 fields from this table
Need help with RetailSalesLine in a report, an integration or a migration? Talk to Dr Dynamics.