Data entity

RetailSalesTableBiEntity

Holds commerce sales order headers for BI and analytics. Each record is keyed by source key and sales order. It includes store, register, channel reference, statement number, payment method, discount and coupon details, and transaction time and data.

Entity name
RetailSalesTableBiEntity
Public entity name
RetailSalesTableBiEntity
OData collection
RetailSalesTableBiEntities
Category
Not set
Module
Other (no module in the metadata)
Read-only
No
Data management enabled
No
Configuration key
Retail
Keys
SourceKey, SalesTable
Staging table
None

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/RetailSalesTableBiEntities
Dataverse virtual table
mserp_retailsalestablebientity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Not enabled for import and export projects.

Data sources

  • RetailSalesTable · root

Fields (34)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
ChannelReferenceIdIdentifier of the order in the channel where it was created.String (50)
RetailOrderChannelReferenceId
NoYesRetailSalesTable.ChannelReferenceId
DiscountCodesStored list of discount codes used on the order.Container
RetailDiscountCodes
NoYesRetailSalesTable.DiscountCodes
OMInternalOrganizationPoints to the internal organization linked to the order.Int64
RefRecId
NoYesOMInternalOrganization.RecIdRetailSalesTable.OMInternalOrganization
OriginalTransactionTimeDate and time of the original transaction.UtcDateTime
TransDateTime
NoYesRetailSalesTable.OriginalTransactionTime
RetailChannelPoints to the retail channel of the order.Int64
RefRecId
NoYesRetailChannelTable.RecIdRetailSalesTable.RetailChannel
RetailHourOfDayPoints to the hour-of-day record for the order.Int64
RefRecId
NoYesRetailHour.RecIdRetailSalesTable.RetailHourOfDay
RetailLoyaltyCardPoints to the loyalty card linked to the order.Int64
RefRecId
NoYesRetailLoyaltyCard.RecIdRetailSalesTable.RetailLoyaltyCard
RetailOrderYes/No value showing whether this is a retail order.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailSalesTable.RetailOrder
RetailPrepaymentOverriddenYes/No value showing whether the prepayment was overridden.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailSalesTable.RetailPrepaymentOverridden
RetailReplenishmentLocationIdThe warehouse used for replenishment. It points to a warehouse record.String
SalesInventLocationId
NoYesInventLocation.InventLocationIdRetailSalesTable.RetailReplenishmentLocationId
RetailRetailStatusTypeRetail status of the order, for example document, sent, part receipt, closed or canceled.Enum
RetailRetailStatusType
RetailRetailStatusTypeBase
  • None 0
  • Document 1
  • Sent 2
  • PartReceipt 3
  • ClosedOk 4
  • ClosedDifference 5
  • Canceled 6
NoYesRetailSalesTable.RetailRetailStatusType
RetailStoreIdNumber of the store linked to the order.String
RetailStoreId
NoYesRetailStoreTable.StoreNumberRetailSalesTable.RetailStoreId
RetailTerminalIdNumber of the register (POS terminal) linked to the order.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailSalesTable.RetailTerminalId
SalesTablePoints to the sales order that this record extends.Int64
RefRecId
NoYesSalesTable.RecIdRetailSalesTable.SalesTable
TmpPriceDiscountDataStored transaction data about price and discounts.low confidenceContainer
RetailTransactionDataEx3
NoYesRetailSalesTable.TmpPriceDiscountData
TotalManualDiscountAmountTotal of manual discounts, shown as a discount amount. The currency is not stated in the metadata.Real
DiscAmount
NoYesRetailSalesTable.TotalManualDiscountAmount
TotalManualDiscountPercentageManual discount given as a percentage.Real
DiscPct
NoYesRetailSalesTable.TotalManualDiscountPercentage
CouponsStored list of coupons used on the order.Container
RetailCoupons
NoYesRetailSalesTable.Coupons
TaxOverrideCodeCode of the sales tax override applied to the order.String (25)
RetailTaxOverrideCode
NoYesRetailSalesTable.TaxOverrideCode
GSTTransactionIdFromPOS_INYes/No value used for India, about whether the GST transaction ID comes from the point of sale.low confidenceEnum
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailSalesTable.GSTTransactionIdFromPOS_IN
GSTTransactionId_INInvoice identifier for GST transactions, used for India.String (50)
TaxTransactionId_IN
NoYesRetailSalesTable.GSTTransactionId_IN
ShouldUseUnifiedPricingEngineOnSalesOrderYes/No value showing whether the unified pricing engine is used on the order.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailSalesTable.ShouldUseUnifiedPricingEngineOnSalesOrder
StatementIdNumber of the statement linked to the order.String (20)
RetailStatementId
NoYesRetailSalesTable.StatementId
CreditCardTypeIdIdentifier of the card type used for payment.String
RetailStoreCardTypeId
NoYesRetailSalesTable.CreditCardTypeId
CreditCardTenderTypeIdThe payment method used for the card payment.String
RetailStoreTenderTypeId
NoYesRetailSalesTable.CreditCardTenderTypeId
RetailCFDIDocumentType_MXType of CFDI document, global or normal, used for Mexico.Enum
RetailCFDIDocumentType_MX
  • CFDIGlobal 0
  • CFDINormal 1
NoYesRetailSalesTable.RetailCFDIDocumentType_MX
IsTaxExemptedForPriceInclusiveYes/No value showing whether tax was exempted where prices include tax.Enum
RetailIsTaxExemptedForPriceInclusive
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailSalesTable.IsTaxExemptedForPriceInclusive
PaymentsTypeKind of payments used on the order: legacy, commerce or call center.Enum
RetailPaymentsType
  • Legacy 0
  • Commerce 1
  • CallCenter 2
NoYesRetailSalesTable.PaymentsType
RetailProductListUpdateNameName of a product list linked to the order.String (250)
RetailProductListName
NoYesRetailSalesTable.RetailProductListUpdateName
RetailProductListUpdateIdIdentifier of a product list linked to the order.String (40)
RetailProductListId
NoYesRetailSalesTable.RetailProductListUpdateId
InitialReceiptIdReceipt number first issued for the order in the point of sale.String (18)
RetailInitialReceiptId
NoYesRetailSalesTable.InitialReceiptId
IsPriceAndDiscountRecalculationRequiredYes/No value showing whether price and discounts need to be recalculated.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailSalesTable.IsPriceAndDiscountRecalculationRequired
OriginChannelPoints to the channel where the order originated.Int64
RefRecId
NoYesRetailSalesTable.OriginChannel
SourceKeyA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesRetailSalesTable.RecId

Foreign keys (8)

Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.

Need help with RetailSalesTableBiEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk