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 description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ChannelReferenceIdIdentifier of the order in the channel where it was created. | String (50)RetailOrderChannelReferenceId | No | Yes | RetailSalesTable.ChannelReferenceId | |
DiscountCodesStored list of discount codes used on the order. | ContainerRetailDiscountCodes | No | Yes | RetailSalesTable.DiscountCodes | |
OMInternalOrganizationPoints to the internal organization linked to the order. | Int64RefRecId | No | Yes | OMInternalOrganization.RecId | RetailSalesTable.OMInternalOrganization |
OriginalTransactionTimeDate and time of the original transaction. | UtcDateTimeTransDateTime | No | Yes | RetailSalesTable.OriginalTransactionTime | |
RetailChannelPoints to the retail channel of the order. | Int64RefRecId | No | Yes | RetailChannelTable.RecId | RetailSalesTable.RetailChannel |
RetailHourOfDayPoints to the hour-of-day record for the order. | Int64RefRecId | No | Yes | RetailHour.RecId | RetailSalesTable.RetailHourOfDay |
RetailLoyaltyCardPoints to the loyalty card linked to the order. | Int64RefRecId | No | Yes | RetailLoyaltyCard.RecId | RetailSalesTable.RetailLoyaltyCard |
RetailOrderYes/No value showing whether this is a retail order. | Enum
| No | Yes | RetailSalesTable.RetailOrder | |
RetailPrepaymentOverriddenYes/No value showing whether the prepayment was overridden. | EnumNoYesId
| No | Yes | RetailSalesTable.RetailPrepaymentOverridden | |
RetailReplenishmentLocationIdThe warehouse used for replenishment. It points to a warehouse record. | StringSalesInventLocationId | No | Yes | InventLocation.InventLocationId | RetailSalesTable.RetailReplenishmentLocationId |
RetailRetailStatusTypeRetail status of the order, for example document, sent, part receipt, closed or canceled. | EnumRetailRetailStatusType
| No | Yes | RetailSalesTable.RetailRetailStatusType | |
RetailStoreIdNumber of the store linked to the order. | StringRetailStoreId | No | Yes | RetailStoreTable.StoreNumber | RetailSalesTable.RetailStoreId |
RetailTerminalIdNumber of the register (POS terminal) linked to the order. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailSalesTable.RetailTerminalId |
SalesTablePoints to the sales order that this record extends. | Int64RefRecId | No | Yes | SalesTable.RecId | RetailSalesTable.SalesTable |
TmpPriceDiscountDataStored transaction data about price and discounts.low confidence | ContainerRetailTransactionDataEx3 | No | Yes | RetailSalesTable.TmpPriceDiscountData | |
TotalManualDiscountAmountTotal of manual discounts, shown as a discount amount. The currency is not stated in the metadata. | RealDiscAmount | No | Yes | RetailSalesTable.TotalManualDiscountAmount | |
TotalManualDiscountPercentageManual discount given as a percentage. | RealDiscPct | No | Yes | RetailSalesTable.TotalManualDiscountPercentage | |
CouponsStored list of coupons used on the order. | ContainerRetailCoupons | No | Yes | RetailSalesTable.Coupons | |
TaxOverrideCodeCode of the sales tax override applied to the order. | String (25)RetailTaxOverrideCode | No | Yes | RetailSalesTable.TaxOverrideCode | |
GSTTransactionIdFromPOS_INYes/No value used for India, about whether the GST transaction ID comes from the point of sale.low confidence | Enum
| No | Yes | RetailSalesTable.GSTTransactionIdFromPOS_IN | |
GSTTransactionId_INInvoice identifier for GST transactions, used for India. | String (50)TaxTransactionId_IN | No | Yes | RetailSalesTable.GSTTransactionId_IN | |
ShouldUseUnifiedPricingEngineOnSalesOrderYes/No value showing whether the unified pricing engine is used on the order. | Enum
| No | Yes | RetailSalesTable.ShouldUseUnifiedPricingEngineOnSalesOrder | |
StatementIdNumber of the statement linked to the order. | String (20)RetailStatementId | No | Yes | RetailSalesTable.StatementId | |
CreditCardTypeIdIdentifier of the card type used for payment. | StringRetailStoreCardTypeId | No | Yes | RetailSalesTable.CreditCardTypeId | |
CreditCardTenderTypeIdThe payment method used for the card payment. | StringRetailStoreTenderTypeId | No | Yes | RetailSalesTable.CreditCardTenderTypeId | |
RetailCFDIDocumentType_MXType of CFDI document, global or normal, used for Mexico. | Enum
| No | Yes | RetailSalesTable.RetailCFDIDocumentType_MX | |
IsTaxExemptedForPriceInclusiveYes/No value showing whether tax was exempted where prices include tax. | EnumRetailIsTaxExemptedForPriceInclusive
| No | Yes | RetailSalesTable.IsTaxExemptedForPriceInclusive | |
PaymentsTypeKind of payments used on the order: legacy, commerce or call center. | Enum
| No | Yes | RetailSalesTable.PaymentsType | |
RetailProductListUpdateNameName of a product list linked to the order. | String (250)RetailProductListName | No | Yes | RetailSalesTable.RetailProductListUpdateName | |
RetailProductListUpdateIdIdentifier of a product list linked to the order. | String (40)RetailProductListId | No | Yes | RetailSalesTable.RetailProductListUpdateId | |
InitialReceiptIdReceipt number first issued for the order in the point of sale. | String (18)RetailInitialReceiptId | No | Yes | RetailSalesTable.InitialReceiptId | |
IsPriceAndDiscountRecalculationRequiredYes/No value showing whether price and discounts need to be recalculated. | Enum
| No | Yes | RetailSalesTable.IsPriceAndDiscountRecalculationRequired | |
OriginChannelPoints to the channel where the order originated. | Int64RefRecId | No | Yes | RetailSalesTable.OriginChannel | |
SourceKeyA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | Yes | RetailSalesTable.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.
OMInternalOrganization→OMInternalOrganization.RecId(key of OMInternalOrganization)Many RetailSalesTable records → zero or one OMInternalOrganization record
OMInternalOrganization details: see OMDepartmentEntity, OMDepartmentV2Entity, SystemSecurityUserRoleOrganizationEntity
RetailChannel→RetailChannelTable.RecId(key of RetailChannelTable)Many RetailSalesTable records → exactly one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
RetailHourOfDay→RetailHour.RecId(key of RetailHour)Many RetailSalesTable records → exactly one RetailHour record
Not exposed by a public entity.
RetailLoyaltyCard→RetailLoyaltyCard.RecId(key of RetailLoyaltyCard)Many RetailSalesTable records → zero or one RetailLoyaltyCard record
RetailLoyaltyCard details: see RetailLoyaltyCardEntity, RetailLoyaltyCardRewardPointAdjustmentEntity, RetailLoyaltyCardTierEntity
RetailReplenishmentLocationId→InventLocation.InventLocationId(key of InventLocation)Many RetailSalesTable records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
RetailStoreId→RetailStoreTable.StoreNumber(key of RetailStoreTable)Many RetailSalesTable records → exactly one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
RetailTerminalId→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailSalesTable records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
SalesTable→SalesTable.RecId(key of SalesTable)Zero or one RetailSalesTable record → exactly one SalesTable record
SalesTable details: see SalesOrderHeaderV3Entity, SalesOrderHeaderV2Entity, SalesOrderHeaderV4Entity
Need help with RetailSalesTableBiEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.