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 · root
  • LogisticsPostalAddress · OuterJoin to RetailTransactionTable · read-only
  • LogisticsLocation · OuterJoin to LogisticsPostalAddress · read-only
  • RetailChannelTable · OuterJoin to RetailTransactionTable · read-only
  • OMOperatingUnit · OuterJoin to RetailChannelTable · read-only
  • RetailMCRChannelTable · Derived to RetailChannelTable
  • RetailOnlineChannelTable · Derived to RetailChannelTable
  • RetailDirectSalesChannel · Derived to RetailChannelTable
  • RetailStoreTable · Derived to RetailChannelTable

Fields (83)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
BatchIDShift identifier that the transaction belongs to. It points to a shift record together with the shift register and store.Int64
RetailPosBatchID
NoYesRetailPosBatchTable.BatchIDRetailTransactionTable.BatchID
TerminalRegister (POS terminal) where the transaction was recorded.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailTransactionTable.terminal
AmountPostedToAccountAmount of the transaction that is put on the customer's account.Real
RetailAmountToAccount
NoYesRetailTransactionTable.amountToAccount
ChannelRetail channel the transaction belongs to, as a system record ID.Int64
RefRecId
NoNo (private)RetailChannelTable.RecIdRetailTransactionTable.Channel
ChannelReferenceIdIdentifier of the order or transaction in the channel it came from.String (50)
RetailOrderChannelReferenceId
NoYesRetailTransactionTable.ChannelReferenceId
CostAmountCost amount of the transaction.Real
RetailCostAmount
NoYesRetailTransactionTable.costAmount
CreatedOfflineShows whether the transaction was created while the register was offline.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionTable.CreatedOffline
CurrencyCurrency code of the transaction.String (3)
CurrencyCode
NoYesCurrency.CurrencyCodeRetailTransactionTable.currency
CustomerAccountCustomer account linked to the transaction.String (38)
RetailAsyncCustAccount
NoYesCustTable.AccountNumRetailTransactionTable.custAccount
CustomerDiscountAmountDiscount amount given to the customer.Real
RetailCustDiscAmount
NoYesRetailTransactionTable.custDiscAmount
DiscountAmountDiscount amount of the transaction.Real
RetailDiscAmount
NoYesRetailTransactionTable.discAmount
DiscountAmountWithoutTaxDiscount amount, not including tax.Real
DiscAmountWithoutTax
NoYesRetailTransactionTable.discAmountWithoutTax
DeliveryModeMode of delivery chosen for the transaction.String
CustDlvModeId
NoYesRetailTransactionTable.DlvMode
TransactionStatusStatus of the transaction, for example voided, posted, concluded or on hold.Enum
RetailTransEntryStatus
RetailEntryStatus
  • None 0
  • Voided 1
  • Posted 2
  • Concluded 3
  • Cancelled 4
  • OnHold 5
  • Training 6
  • PendingInvoice 7
  • CreatingOrder 8
NoYesRetailTransactionTable.entryStatus
ExchangeRateExchange rate stored with the transaction.Real
ExchRate
NoYesRetailTransactionTable.exchRate
GrossAmountGross amount of the transaction.Real
RetailGrossAmount
NoYesRetailTransactionTable.grossAmount
IncomeExpenseAmountAmount of income or expense entries in the transaction.Real
RetailIncomeExpenseAmount
NoYesRetailTransactionTable.incomeExpenseAmount
InfocodeDiscountGroupReason code discount group applied to the transaction.String
RetailInfocodeDiscGroup
NoYesRetailTransactionTable.infocodeDiscGroup
WarehouseWarehouse linked to the transaction.String
SalesInventLocationId
NoYesRetailTransactionTable.InventLocationId
SiteIdInventory site linked to the transaction.String
InventSiteId
NoYesRetailTransactionTable.InventSiteId
InvoiceIdInvoice number linked to the transaction.String (50)
InvoiceId
NoYesRetailTransactionTable.invoiceId
ItemsPostedShows whether the products on the transaction have been posted.Enum
RetailItemsPosted
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionTable.itemsPosted
LoyaltyCardIdNumber of the loyalty card used on the transaction.String (30)
RetailLoyaltyCardNumber
NoYesRetailLoyaltyCard.CardNumberRetailTransactionTable.loyaltyCardId
NetAmountNet amount excluding tax. Whether tax is already removed depends on the pricing mode.Real
RetailNetAmount
NoYesRetailTransactionTable.netAmount
NetPriceNet price on the transaction.Real
RetailNetPrice
NoYesRetailTransactionTable.netPrice
PaymentAmountTotal amount paid on the transaction.Real
RetailPaymentAmount
NoYesRetailTransactionTable.paymentAmount
PostAsShipmentShows whether the transaction is posted as a shipment.Enum
RetailPostAsShipment
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionTable.postAsShipment
RreceiptIdReceipt number of the transaction.String (18)
RetailReceiptId
NoYesRetailTransactionTable.receiptId
RefundReceiptIdReceipt number of the receipt used for a refund.low confidenceString (18)
RetailReceiptId
NoYesRetailTransactionTable.refundReceiptId
SaleIsReturnSaleMarks a transaction as a return made against a receipt.Enum
RetailSaleIsReturnSale
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionTable.saleIsReturnSale
SalesInvoiceAmountAmount on the sales invoice.Real
RetailSalesInvoiceAmount
NoYesRetailTransactionTable.salesInvoiceAmount
SalesOrderAmountAmount on the sales order.Real
RetailSalesOrderAmount
NoYesRetailTransactionTable.salesOrderAmount
SalesOrderIdSales order linked to the transaction.String (20)
SalesId
NoYesSalesTable.SalesIdRetailTransactionTable.salesOrderId
SalesPaymentDifferenceDifference between the sales amount and the payment amount.Real
RetailSalesPaymentDifference
NoYesRetailTransactionTable.salesPaymentDifference
ShiftShift identifier text for the transaction.String
RetailShiftId
NoYesRetailTransactionTable.shift
ShippingDateRequestedShip date requested by the customer.Date
SalesShippingDateRequested
NoYesRetailTransactionTable.ShippingDateRequested
StaffOperator who handled the transaction.String (25)
RetailStaffId
NoYesRetailTransactionTable.staff
ToAccountShows whether the transaction is put on a customer account.Enum
RetailToAccount
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionTable.toAccount
TotalDiscountAmountTotal discount amount of the transaction.Real
RetailTotalDiscAmount
NoYesRetailTransactionTable.totalDiscAmount
TotalManualDiscountAmountSum of discounts entered manually.Real
RetailTotalManualDiscountAmount
NoYesRetailTransactionTable.TotalManualDiscountAmount
TotalManualDiscountPercentageManual discount expressed as a percentage.Real
RetailTotalManualDiscountPercentage
NoYesRetailTransactionTable.TotalManualDiscountPercentage
TransactionNumberTransaction number. It identifies the transaction within its store and register.String (44)
RetailTransactionId
YesYesRetailTransactionTable.transactionId
TransactionDateDate of the transaction.Date
TransDate
NoYesRetailTransactionTable.transDate
TransactionTimeTime of the transaction.Time
RetailTransTime
NoYesRetailTransactionTable.transTime
TransactionTypeKind of transaction, such as sales, payment, logon, logoff or tender declaration.Enum
RetailTransactionType
  • Logoff 0
  • Logon 1
  • Sales 2
  • Payment 3
  • RemoveTender 4
  • FloatEntry 5
  • ChangeTender 6
  • TenderDeclaration 7
  • Voided 8
  • OpenDrawer 9
  • NegativeAdjustment 10
  • PhysicalInventory 11
  • EndOfDay 12
  • EndOfShift 13
  • SalesOrder 14
  • SalesInvoice 15
  • BankDrop 16
  • SafeDrop 17
  • IncomeExpense 18
  • CustomerOrder 19
  • StartingAmount 20
  • SuspendShift 21
  • BlindCloseShift 22
  • CloseShift 23
  • PrintX 24
  • PrintZ 25
  • PendingSalesOrder 27
  • ManagerAuthorize 26
  • KitDisassembly 28
  • ResetPassword 29
  • ChangePassword 30
  • AsyncCustomerQuote 31
  • AsyncCustomerOrder 33
  • ForceDeleteShift 34
  • GiftCardInquiry 35
  • SuspendedTransaction 36
  • AsyncOrderCancellation 37
NoYesRetailTransactionTable.type
LogisticsPostalAddressLocationThe location record that owns this address.Int64
LogisticsLocationRecId
YesNo (private)LogisticsLocation.RecIdLogisticsPostalAddress.Location
LogisticsLocationIdUnique ID of the location. It is the key of the table.String (40)
LogisticsLocationId
NoYesLogisticsLocation.LocationId
LogisticsPostalAddressPostal address record linked to the transaction.Int64
LogisticsPostalAddressRecId
NoNo (private)LogisticsPostalAddress.RecIdRetailTransactionTable.LogisticsPostalAddress
LogisticsPostalCityName of the city, as text.String (60)
LogisticsAddressCityName
NoYesLogisticsPostalAddress.City
LogisticsPostalCountyCounty code of the address. It depends on the country and state.String (30)
LogisticsAddressCountyId
NoYesLogisticsAddressCounty.CountyIdLogisticsPostalAddress.County
LogisticsPostalStateState or province code of the address.String
LogisticsAddressStateId
NoYesLogisticsAddressState.StateIdLogisticsPostalAddress.State
LogisticsPostalStreetStreet name of the address.String (250)
LogisticsAddressStreet
NoYesLogisticsPostalAddress.Street
LogisticsPostalZipCodeZIP or postal code, as text.String
LogisticsAddressZipCodeId
NoYesLogisticsPostalAddress.ZipCode
LogisticsPostalAddressValidFromDate and time from which the address is effective.UtcDateTime
EffectiveDateTime
NoYesLogisticsPostalAddress.ValidFrom
LogisticPostalAddressValidToDate and time when the address expires.UtcDateTime
ExpirationDateTime
NoYesLogisticsPostalAddress.ValidTo
OperatingUnitNumberThe number that identifies the operating unit.String (30)
OMOperatingUnitNumber
YesYesOMOperatingUnit.OMOperatingUnitNumber
RetailChannelTableOMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record.Int64
RefRecId
NoNo (private)OMOperatingUnit.RecIdRetailChannelTable.OMOperatingUnitID
CommentFree-text comment on the transaction.String (60)
RetailCommentEx5
NoYesRetailTransactionTable.comment
TaxCalculationTypeTax calculation method: regular or generic tax engine.Enum
TaxCalculationType
  • Regular 0
  • GTE 1
NoYesRetailTransactionTable.TaxCalculationType
SuspendedTransactionIdNumber of the transaction that the original one was suspended to.String (44)
RetailTransactionId
NoYesRetailTransactionTable.SuspendedTransactionId
SaleOnAccountShows whether the transaction is an on-account sale.Enum
RetailTransactionSaleOnAccount
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionTable.SaleOnAccount
GiftCardActiveFromDate and time from which a gift card is active.UtcDateTime
RetailGiftCardActiveFrom
NoYesRetailTransactionTable.GiftCardActiveFrom
GiftCardBalanceBalance of a gift card, in accounting currency.Real
AmountMST
NoYesRetailTransactionTable.GiftCardBalance
GiftCardExpireDateExpiry date of a gift card.Date
RetailGiftCardExpireDate
NoYesRetailTransactionTable.GiftCardExpireDate
GiftCardHistoryDetailsLong text with the history of a gift card.String (-1)
RetailGiftCardHistoryDetails
NoYesRetailTransactionTable.GiftCardHistoryDetails
GiftCardIssueAmountAmount a gift card was issued with, in accounting currency.Real
AmountMST
NoYesRetailTransactionTable.GiftCardIssueAmount
GiftCardIdMaskedGift card number with part of it hidden.String (30)
RetailGiftCardIdMasked
NoYesRetailTransactionTable.GiftCardIdMasked
businessDateBusiness date of the transaction.Date
RetailBusinessDate
NoYesRetailTransactionTable.businessDate
IsTaxIncludedInPriceShows whether prices include tax.Enum
RetailIsTaxIncludedInPrice
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionTable.IsTaxIncludedInPrice
RetailTransactionAggregationFieldListLink to a record in the aggregation field list.Int64
RefRecId
NoYesRetailTransactionAggregationFieldList.RecIdRetailTransactionTable.RetailTransactionAggregationFieldList
TransactionOrderTypeOrder type of the transaction: sales order or quote.Enum
RetailTransactionOrderType
RetailTransactionOrderTypes
  • SalesOrder 0
  • Quote 1
NoYesRetailTransactionTable.TransactionOrderType
BeginDateTimeDate and time when the transaction began.UtcDateTimeNoYesRetailTransactionTable.BeginDateTime
NumberOfItemLinesCount of product lines on the transaction.Real
RetailNumberOfItemLines
NoYesRetailTransactionTable.numberOfItemLines
NumberOfItemsTotal quantity of products on the transaction.Real
RetailNumberOfItems
NoYesRetailTransactionTable.numberOfItems
NumberOfPaymentLinesCount of payment lines on the transaction.Integer
RetailNumberOfPaymentLines
NoYesRetailTransactionTable.numberOfPaymentLines
IsTaxExemptedForPriceInclusiveShows whether tax was exempted where prices include tax.Enum
RetailIsTaxExemptedForPriceInclusive
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionTable.IsTaxExemptedForPriceInclusive
BatchTerminalIdRegister on which the shift was opened.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailTransactionTable.BatchTerminalId
CreatedOnPosTerminalRegister where the transaction was created.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailTransactionTable.createdOnPosTerminal
CustomerNameName of the customer.String (160)
DirPartyName
NoYesRetailTransactionTable.CustomerName
LanguageIdLanguage code of the customer.String (7)
CustLanguageId
NoYesRetailTransactionTable.LanguageId
QuotationExpiryDateDate on which a quotation expires.Date
QuotationExpiryDate
NoYesRetailTransactionTable.QuotationExpiryDate
ContactPersonIdContact person linked to the transaction.String (20)
ContactPersonId
NoYesContactPerson.ContactPersonIdRetailTransactionTable.ContactPersonId
ExpediteExpedite code or flag for the order.low confidenceString
MCRExpedite
NoYesRetailTransactionTable.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.

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

Email sales@drdynamics.co.uk