Data entity
RetailTransactionEntity
Holds retail transaction headers, identified by transaction number, operating unit and register. It stores amounts such as gross, net, discount, payment and invoice amounts. It also holds the customer account, currency, exchange rate, shift, delivery mode, warehouse, site and receipt number. It has flags such as created offline and return sale.
- Entity name
RetailTransactionEntity- Public entity name
RetailTransaction- OData collection
RetailTransactions- Category
Not set- Module
Transactions and orders- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
TransactionNumber, OperatingUnitNumber, Terminal- Staging table
RetailTransactionStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/RetailTransactions- Dataverse virtual table
mserp_retailtransactionentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
RetailTransactionTable· rootLogisticsPostalAddress· OuterJoin toRetailTransactionTable· read-onlyLogisticsLocation· OuterJoin toLogisticsPostalAddress· read-onlyRetailChannelTable· OuterJoin toRetailTransactionTable· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailMCRChannelTable· Derived toRetailChannelTableRetailOnlineChannelTable· Derived toRetailChannelTableRetailDirectSalesChannel· Derived toRetailChannelTableRetailStoreTable· Derived toRetailChannelTable
Fields (83)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
BatchIDShift identifier that the transaction belongs to. It points to a shift record together with the shift register and store. | Int64RetailPosBatchID | No | Yes | RetailPosBatchTable.BatchID | RetailTransactionTable.BatchID |
TerminalRegister (POS terminal) where the transaction was recorded. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionTable.terminal |
AmountPostedToAccountAmount of the transaction that is put on the customer's account. | RealRetailAmountToAccount | No | Yes | RetailTransactionTable.amountToAccount | |
ChannelRetail channel the transaction belongs to, as a system record ID. | Int64RefRecId | No | No (private) | RetailChannelTable.RecId | RetailTransactionTable.Channel |
ChannelReferenceIdIdentifier of the order or transaction in the channel it came from. | String (50)RetailOrderChannelReferenceId | No | Yes | RetailTransactionTable.ChannelReferenceId | |
CostAmountCost amount of the transaction. | RealRetailCostAmount | No | Yes | RetailTransactionTable.costAmount | |
CreatedOfflineShows whether the transaction was created while the register was offline. | EnumNoYesId
| No | Yes | RetailTransactionTable.CreatedOffline | |
CurrencyCurrency code of the transaction. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | RetailTransactionTable.currency |
CustomerAccountCustomer account linked to the transaction. | String (38)RetailAsyncCustAccount | No | Yes | CustTable.AccountNum | RetailTransactionTable.custAccount |
CustomerDiscountAmountDiscount amount given to the customer. | RealRetailCustDiscAmount | No | Yes | RetailTransactionTable.custDiscAmount | |
DiscountAmountDiscount amount of the transaction. | RealRetailDiscAmount | No | Yes | RetailTransactionTable.discAmount | |
DiscountAmountWithoutTaxDiscount amount, not including tax. | RealDiscAmountWithoutTax | No | Yes | RetailTransactionTable.discAmountWithoutTax | |
DeliveryModeMode of delivery chosen for the transaction. | StringCustDlvModeId | No | Yes | RetailTransactionTable.DlvMode | |
TransactionStatusStatus of the transaction, for example voided, posted, concluded or on hold. | EnumRetailTransEntryStatus
| No | Yes | RetailTransactionTable.entryStatus | |
ExchangeRateExchange rate stored with the transaction. | RealExchRate | No | Yes | RetailTransactionTable.exchRate | |
GrossAmountGross amount of the transaction. | RealRetailGrossAmount | No | Yes | RetailTransactionTable.grossAmount | |
IncomeExpenseAmountAmount of income or expense entries in the transaction. | RealRetailIncomeExpenseAmount | No | Yes | RetailTransactionTable.incomeExpenseAmount | |
InfocodeDiscountGroupReason code discount group applied to the transaction. | StringRetailInfocodeDiscGroup | No | Yes | RetailTransactionTable.infocodeDiscGroup | |
WarehouseWarehouse linked to the transaction. | StringSalesInventLocationId | No | Yes | RetailTransactionTable.InventLocationId | |
SiteIdInventory site linked to the transaction. | StringInventSiteId | No | Yes | RetailTransactionTable.InventSiteId | |
InvoiceIdInvoice number linked to the transaction. | String (50)InvoiceId | No | Yes | RetailTransactionTable.invoiceId | |
ItemsPostedShows whether the products on the transaction have been posted. | EnumRetailItemsPosted
| No | Yes | RetailTransactionTable.itemsPosted | |
LoyaltyCardIdNumber of the loyalty card used on the transaction. | String (30)RetailLoyaltyCardNumber | No | Yes | RetailLoyaltyCard.CardNumber | RetailTransactionTable.loyaltyCardId |
NetAmountNet amount excluding tax. Whether tax is already removed depends on the pricing mode. | RealRetailNetAmount | No | Yes | RetailTransactionTable.netAmount | |
NetPriceNet price on the transaction. | RealRetailNetPrice | No | Yes | RetailTransactionTable.netPrice | |
PaymentAmountTotal amount paid on the transaction. | RealRetailPaymentAmount | No | Yes | RetailTransactionTable.paymentAmount | |
PostAsShipmentShows whether the transaction is posted as a shipment. | EnumRetailPostAsShipment
| No | Yes | RetailTransactionTable.postAsShipment | |
RreceiptIdReceipt number of the transaction. | String (18)RetailReceiptId | No | Yes | RetailTransactionTable.receiptId | |
RefundReceiptIdReceipt number of the receipt used for a refund.low confidence | String (18)RetailReceiptId | No | Yes | RetailTransactionTable.refundReceiptId | |
SaleIsReturnSaleMarks a transaction as a return made against a receipt. | EnumRetailSaleIsReturnSale
| No | Yes | RetailTransactionTable.saleIsReturnSale | |
SalesInvoiceAmountAmount on the sales invoice. | RealRetailSalesInvoiceAmount | No | Yes | RetailTransactionTable.salesInvoiceAmount | |
SalesOrderAmountAmount on the sales order. | RealRetailSalesOrderAmount | No | Yes | RetailTransactionTable.salesOrderAmount | |
SalesOrderIdSales order linked to the transaction. | String (20)SalesId | No | Yes | SalesTable.SalesId | RetailTransactionTable.salesOrderId |
SalesPaymentDifferenceDifference between the sales amount and the payment amount. | RealRetailSalesPaymentDifference | No | Yes | RetailTransactionTable.salesPaymentDifference | |
ShiftShift identifier text for the transaction. | StringRetailShiftId | No | Yes | RetailTransactionTable.shift | |
ShippingDateRequestedShip date requested by the customer. | DateSalesShippingDateRequested | No | Yes | RetailTransactionTable.ShippingDateRequested | |
StaffOperator who handled the transaction. | String (25)RetailStaffId | No | Yes | RetailTransactionTable.staff | |
ToAccountShows whether the transaction is put on a customer account. | EnumRetailToAccount
| No | Yes | RetailTransactionTable.toAccount | |
TotalDiscountAmountTotal discount amount of the transaction. | RealRetailTotalDiscAmount | No | Yes | RetailTransactionTable.totalDiscAmount | |
TotalManualDiscountAmountSum of discounts entered manually. | RealRetailTotalManualDiscountAmount | No | Yes | RetailTransactionTable.TotalManualDiscountAmount | |
TotalManualDiscountPercentageManual discount expressed as a percentage. | RealRetailTotalManualDiscountPercentage | No | Yes | RetailTransactionTable.TotalManualDiscountPercentage | |
TransactionNumberTransaction number. It identifies the transaction within its store and register. | String (44)RetailTransactionId | Yes | Yes | RetailTransactionTable.transactionId | |
TransactionDateDate of the transaction. | DateTransDate | No | Yes | RetailTransactionTable.transDate | |
TransactionTimeTime of the transaction. | TimeRetailTransTime | No | Yes | RetailTransactionTable.transTime | |
TransactionTypeKind of transaction, such as sales, payment, logon, logoff or tender declaration. | Enum
| No | Yes | RetailTransactionTable.type | |
LogisticsPostalAddressLocationThe location record that owns this address. | Int64LogisticsLocationRecId | Yes | No (private) | LogisticsLocation.RecId | LogisticsPostalAddress.Location |
LogisticsLocationIdUnique ID of the location. It is the key of the table. | String (40)LogisticsLocationId | No | Yes | LogisticsLocation.LocationId | |
LogisticsPostalAddressPostal address record linked to the transaction. | Int64LogisticsPostalAddressRecId | No | No (private) | LogisticsPostalAddress.RecId | RetailTransactionTable.LogisticsPostalAddress |
LogisticsPostalCityName of the city, as text. | String (60)LogisticsAddressCityName | No | Yes | LogisticsPostalAddress.City | |
LogisticsPostalCountyCounty code of the address. It depends on the country and state. | String (30)LogisticsAddressCountyId | No | Yes | LogisticsAddressCounty.CountyId | LogisticsPostalAddress.County |
LogisticsPostalStateState or province code of the address. | StringLogisticsAddressStateId | No | Yes | LogisticsAddressState.StateId | LogisticsPostalAddress.State |
LogisticsPostalStreetStreet name of the address. | String (250)LogisticsAddressStreet | No | Yes | LogisticsPostalAddress.Street | |
LogisticsPostalZipCodeZIP or postal code, as text. | StringLogisticsAddressZipCodeId | No | Yes | LogisticsPostalAddress.ZipCode | |
LogisticsPostalAddressValidFromDate and time from which the address is effective. | UtcDateTimeEffectiveDateTime | No | Yes | LogisticsPostalAddress.ValidFrom | |
LogisticPostalAddressValidToDate and time when the address expires. | UtcDateTimeExpirationDateTime | No | Yes | LogisticsPostalAddress.ValidTo | |
OperatingUnitNumberThe number that identifies the operating unit. | String (30)OMOperatingUnitNumber | Yes | Yes | OMOperatingUnit.OMOperatingUnitNumber | |
RetailChannelTableOMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record. | Int64RefRecId | No | No (private) | OMOperatingUnit.RecId | RetailChannelTable.OMOperatingUnitID |
CommentFree-text comment on the transaction. | String (60)RetailCommentEx5 | No | Yes | RetailTransactionTable.comment | |
TaxCalculationTypeTax calculation method: regular or generic tax engine. | Enum
| No | Yes | RetailTransactionTable.TaxCalculationType | |
SuspendedTransactionIdNumber of the transaction that the original one was suspended to. | String (44)RetailTransactionId | No | Yes | RetailTransactionTable.SuspendedTransactionId | |
SaleOnAccountShows whether the transaction is an on-account sale. | EnumRetailTransactionSaleOnAccount
| No | Yes | RetailTransactionTable.SaleOnAccount | |
GiftCardActiveFromDate and time from which a gift card is active. | UtcDateTimeRetailGiftCardActiveFrom | No | Yes | RetailTransactionTable.GiftCardActiveFrom | |
GiftCardBalanceBalance of a gift card, in accounting currency. | RealAmountMST | No | Yes | RetailTransactionTable.GiftCardBalance | |
GiftCardExpireDateExpiry date of a gift card. | DateRetailGiftCardExpireDate | No | Yes | RetailTransactionTable.GiftCardExpireDate | |
GiftCardHistoryDetailsLong text with the history of a gift card. | String (-1)RetailGiftCardHistoryDetails | No | Yes | RetailTransactionTable.GiftCardHistoryDetails | |
GiftCardIssueAmountAmount a gift card was issued with, in accounting currency. | RealAmountMST | No | Yes | RetailTransactionTable.GiftCardIssueAmount | |
GiftCardIdMaskedGift card number with part of it hidden. | String (30)RetailGiftCardIdMasked | No | Yes | RetailTransactionTable.GiftCardIdMasked | |
businessDateBusiness date of the transaction. | DateRetailBusinessDate | No | Yes | RetailTransactionTable.businessDate | |
IsTaxIncludedInPriceShows whether prices include tax. | EnumRetailIsTaxIncludedInPrice
| No | Yes | RetailTransactionTable.IsTaxIncludedInPrice | |
RetailTransactionAggregationFieldListLink to a record in the aggregation field list. | Int64RefRecId | No | Yes | RetailTransactionAggregationFieldList.RecId | RetailTransactionTable.RetailTransactionAggregationFieldList |
TransactionOrderTypeOrder type of the transaction: sales order or quote. | EnumRetailTransactionOrderType
| No | Yes | RetailTransactionTable.TransactionOrderType | |
BeginDateTimeDate and time when the transaction began. | UtcDateTime | No | Yes | RetailTransactionTable.BeginDateTime | |
NumberOfItemLinesCount of product lines on the transaction. | RealRetailNumberOfItemLines | No | Yes | RetailTransactionTable.numberOfItemLines | |
NumberOfItemsTotal quantity of products on the transaction. | RealRetailNumberOfItems | No | Yes | RetailTransactionTable.numberOfItems | |
NumberOfPaymentLinesCount of payment lines on the transaction. | IntegerRetailNumberOfPaymentLines | No | Yes | RetailTransactionTable.numberOfPaymentLines | |
IsTaxExemptedForPriceInclusiveShows whether tax was exempted where prices include tax. | EnumRetailIsTaxExemptedForPriceInclusive
| No | Yes | RetailTransactionTable.IsTaxExemptedForPriceInclusive | |
BatchTerminalIdRegister on which the shift was opened. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionTable.BatchTerminalId |
CreatedOnPosTerminalRegister where the transaction was created. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionTable.createdOnPosTerminal |
CustomerNameName of the customer. | String (160)DirPartyName | No | Yes | RetailTransactionTable.CustomerName | |
LanguageIdLanguage code of the customer. | String (7)CustLanguageId | No | Yes | RetailTransactionTable.LanguageId | |
QuotationExpiryDateDate on which a quotation expires. | DateQuotationExpiryDate | No | Yes | RetailTransactionTable.QuotationExpiryDate | |
ContactPersonIdContact person linked to the transaction. | String (20)ContactPersonId | No | Yes | ContactPerson.ContactPersonId | RetailTransactionTable.ContactPersonId |
ExpediteExpedite code or flag for the order.low confidence | StringMCRExpedite | No | Yes | RetailTransactionTable.Expedite |
Foreign keys (16)
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.
BatchID→RetailPosBatchTable.BatchID(key of RetailPosBatchTable)Join on all of:
BatchID=RetailPosBatchTable.BatchID,BatchTerminalId=RetailPosBatchTable.TerminalId,store(table field, not in this entity) =RetailPosBatchTable.StoreIdMany RetailTransactionTable records → exactly one RetailPosBatchTable record
RetailPosBatchTable details: see RetailPosBatchTableEntity, RetailPosBatchEntity, RetailPosBatch2Entity
Terminal→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionTable records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
Channel→RetailChannelTable.RecId(key of RetailChannelTable)Many RetailTransactionTable records → zero or one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
Currency→Currency.CurrencyCode(key of Currency)Many RetailTransactionTable records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
CustomerAccount→CustTable.AccountNum(key of CustTable)Many RetailTransactionTable records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
LoyaltyCardId→RetailLoyaltyCard.CardNumber(key of RetailLoyaltyCard)Many RetailTransactionTable records → exactly one RetailLoyaltyCard record
RetailLoyaltyCard details: see RetailLoyaltyCardEntity, RetailLoyaltyCardRewardPointAdjustmentEntity, RetailLoyaltyCardTierEntity
SalesOrderId→SalesTable.SalesId(key of SalesTable)Many RetailTransactionTable records → exactly one SalesTable record
SalesTable details: see SalesOrderHeaderV3Entity, SalesOrderHeaderV2Entity, SalesOrderHeaderV4Entity
LogisticsPostalAddressLocation→LogisticsLocation.RecId(key of LogisticsLocation)Many LogisticsPostalAddress records → exactly one LogisticsLocation record
LogisticsLocation details: see AccountantEntity, CustPostalAddressV2Entity, DirPartyLocationPostalAddressEntity
LogisticsPostalAddress→LogisticsPostalAddress.RecId(key of LogisticsPostalAddress)Zero or one RetailTransactionTable record → exactly one LogisticsPostalAddress record
LogisticsPostalAddress details: see CustCustomerV3Entity, InventTransferOrderHeaderEntity, TMSFreightBillDetailEntity
LogisticsPostalCounty→LogisticsAddressCounty.CountyId(key of LogisticsAddressCounty)Join on all of:
LogisticsPostalCounty=LogisticsAddressCounty.CountyId,CountryRegionId(table field, not in this entity) =LogisticsAddressCounty.CountryRegionId,LogisticsPostalState=LogisticsAddressCounty.StateIdMany LogisticsPostalAddress records → zero or one LogisticsAddressCounty record
LogisticsAddressCounty details: see LogisticsAddressCountyEntity, VRMLogisticsAddressCountyEntity
LogisticsPostalState→LogisticsAddressState.StateId(key of LogisticsAddressState)Join on all of:
LogisticsPostalState=LogisticsAddressState.StateId,CountryRegionId(table field, not in this entity) =LogisticsAddressState.CountryRegionIdMany LogisticsPostalAddress records → zero or one LogisticsAddressState record
LogisticsAddressState details: see LogisticsAddressStateEntity, PayrollEmployerTaxRegionEntity, StateHolidayEntity
RetailChannelTableOMOperatingUnitID→OMOperatingUnit.RecId(key of OMOperatingUnit)Zero or one RetailChannelTable record → exactly one OMOperatingUnit record
OMOperatingUnit details: see ACOCostCenterTypeEntity, OMOperatingUnitEntity, AssetPackingSlipEntity
RetailTransactionAggregationFieldList→RetailTransactionAggregationFieldList.RecId(key of RetailTransactionAggregationFieldList)Many RetailTransactionTable records → zero or one RetailTransactionAggregationFieldList record
Not exposed by a public entity.
BatchTerminalId→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionTable records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
CreatedOnPosTerminal→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionTable records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
ContactPersonId→ContactPerson.ContactPersonId(key of ContactPerson)Many RetailTransactionTable records → exactly one ContactPerson record
ContactPerson details: see smmContactPersonV2Entity, smmContactPersonCDSV2Entity, BusinessDocumentSalesInvoiceBaseEntity
Need help with RetailTransactionEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.