Data entity

RetailTransactionDiscountTransBIEntity

Entity for BI and analytics that holds discount lines applied to retail transaction sales lines. Records include discount code, origin type, customer and manual discount types, percentages, amounts, offer and bundle IDs. The key is the transaction, sales line, discount line and channel.

Entity name
RetailTransactionDiscountTransBIEntity
Public entity name
RetailTransactionDiscountTransBIEntity
OData collection
RetailTransactionDiscountTransBIEntities
Category
Transaction
Module
Other (no module in the metadata)
Read-only
No
Data management enabled
No
Configuration key
Retail
Keys
StoreId, TerminalId, TransactionId, SaleLineNum, LineNum, Channel
Staging table
None

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/RetailTransactionDiscountTransBIEntities
Dataverse virtual table
mserp_retailtransactiondiscounttransbientity. 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

  • RetailTransactionDiscountTrans · root

Fields (25)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
AmountFull amount of the discount.Real
RetailDiscAmount
NoYesRetailTransactionDiscountTrans.Amount
ChannelRetail channel the transaction belongs to, pointing to the channel record.Int64
RefRecId
NoYesRetailChannelTable.RecIdRetailTransactionDiscountTrans.Channel
CustomerDiscountTypeKind of customer discount, such as line, multiline or total discount.Enum
RetailCustomerDiscountType
  • None 0
  • Line 1
  • Multiline 2
  • TotalDiscount 3
NoYesRetailTransactionDiscountTrans.CustomerDiscountType
DealPriceDeal price value linked to the discount.Real
RetailDealPriceValue
NoYesRetailTransactionDiscountTrans.DealPrice
DiscountAmountCash discount amount.Real
DiscAmount
NoYesRetailTransactionDiscountTrans.DiscountAmount
DiscountCostCost of the discount.Real
RetailDiscountCost
NoYesRetailTransactionDiscountTrans.DiscountCost
DiscountCodeCode that identifies the discount.String (60)
RetailDiscountCodeId
NoYesRetailTransactionDiscountTrans.DiscountCode
DiscountOriginTypeWhere the discount came from, such as customer, periodic, manual, loyalty points or tender discount.Enum
RetailDiscountOriginType
  • None 0
  • Customer 1
  • Periodic 2
  • Manual 3
  • Loyalty_RU 4
  • Tender 5
NoYesRetailTransactionDiscountTrans.DiscountOriginType
LineNumLine number of the discount line.Real
LineNum
YesYesRetailTransactionDiscountTrans.LineNum
ManualDiscountTypeKind of manual discount, such as an amount or a percentage on a line or on the total.Enum
RetailManualDiscountType
  • None 0
  • LineDiscountAmount 1
  • LineDiscountPercent 2
  • TotalDiscountAmount 3
  • TotalDiscountPercent 4
NoYesRetailTransactionDiscountTrans.ManualDiscountType
OriginNumber of the location where the record originated.String (50)
RetailConnDistributionLocationId
NoYesRetailTransactionDiscountTrans.Origin
PercentageDiscount percentage.Real
DiscPct
NoYesRetailTransactionDiscountTrans.Percentage
PeriodicDiscountOfferIdID of the periodic discount offer, pointing to the periodic discount record.String (20)
RetailOfferIdEx3
NoYesRetailPeriodicDiscount.OfferIdRetailTransactionDiscountTrans.PeriodicDiscountOfferId
ReplicationCounterFromOriginCounter used to track replication of the record from where it was created.Integer
RetailReplicationCounter
NoYesRetailTransactionDiscountTrans.ReplicationCounterFromOrigin
SaleLineNumLine number of the sales line that the discount applies to.Real
RetailTransactionSalesLineNum
NoYesRetailTransactionDiscountTrans.SaleLineNum
StoreIdNumber of the store where the transaction took place.String
RetailStoreId
NoYesRetailStoreTable.StoreNumberRetailTransactionDiscountTrans.StoreId
TerminalIdNumber of the POS register that handled the transaction.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailTransactionDiscountTrans.TerminalId
TransactionIdNumber of the retail transaction that the discount belongs to.String (44)
RetailTransactionId
YesYesRetailTransactionDiscountTrans.TransactionId
BundleIdID of the discount bundle that the discount is part of.Integer
RetailDiscountBundleId
NoYesRetailTransactionDiscountTrans.BundleId
AppliedDiscountLineNumLine number of the applied discount.low confidenceReal
LineNum
NoYesRetailTransactionDiscountTrans.AppliedDiscountLineNum
DiscountLineRecIdSystem record ID of a referenced discount line.low confidenceInt64
RefRecId
NoYesRetailTransactionDiscountTrans.DiscountLineRecId
SysDataAreaIdThe company (legal entity) that the record belongs to.String (4)
DataAreaId
NoYesRetailTransactionDiscountTrans.DataAreaId
SourceKeyA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesRetailTransactionDiscountTrans.RecId
EffectivePercentageEffective discount percentage.Real
DiscPct
NoYesRetailTransactionDiscountTrans.EffectivePercentage
CalculatedPricingPriorityNumberPriority number of the pricing, stored as a number.Integer
RetailPricingPriorityNumber
NoYesRetailTransactionDiscountTrans.CalculatedPricingPriorityNumber

Foreign keys (4)

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 RetailTransactionDiscountTransBIEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk