Data entity
RetailTransactionDiscountTransEntity
Holds discounts applied to the sales lines of retail transactions. Records include discount code, origin type, customer and manual discount types, percentages, amounts, offer ID and bundle ID. The key includes the transaction, sales line, operating unit party number and discount line. It links to the retail channel and store.
- Entity name
RetailTransactionDiscountTransEntity- Public entity name
TransactionDiscountTrans- OData collection
TransactionDiscountTrans- Category
Transaction- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
StoreId, TerminalId, TransactionId, SaleLineNum, OMOperatingUnit_PartyNumber, LineNum- Staging table
RetailTransactionDiscountTransStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/TransactionDiscountTrans- Dataverse virtual table
mserp_retailtransactiondiscounttransentity. 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
RetailTransactionDiscountTrans· rootRetailChannelTable· OuterJoin toRetailTransactionDiscountTrans· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailStoreTable· Derived toRetailChannelTableRetailMCRChannelTable· Derived toRetailChannelTableRetailOnlineChannelTable· Derived toRetailChannelTableRetailDirectSalesChannel· Derived toRetailChannelTable
Fields (24)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AmountFull amount of the discount. | RealRetailDiscAmount | No | Yes | RetailTransactionDiscountTrans.Amount | |
ChannelRetail channel the transaction belongs to, pointing to the channel record. | Int64RefRecId | No | No (private) | RetailChannelTable.RecId | RetailTransactionDiscountTrans.Channel |
CustomerDiscountTypeKind of customer discount, such as line, multiline or total discount. | Enum
| No | Yes | RetailTransactionDiscountTrans.CustomerDiscountType | |
DealPriceDeal price value linked to the discount. | RealRetailDealPriceValue | No | Yes | RetailTransactionDiscountTrans.DealPrice | |
DiscountAmountCash discount amount. | RealDiscAmount | No | Yes | RetailTransactionDiscountTrans.DiscountAmount | |
DiscountCostCost of the discount. | RealRetailDiscountCost | No | Yes | RetailTransactionDiscountTrans.DiscountCost | |
DiscountCodeCode that identifies the discount. | String (60)RetailDiscountCodeId | No | Yes | RetailTransactionDiscountTrans.DiscountCode | |
DiscountOriginTypeWhere the discount came from, such as customer, periodic, manual, loyalty points or tender discount. | Enum
| No | Yes | RetailTransactionDiscountTrans.DiscountOriginType | |
LineNumLine number of the discount line. | RealLineNum | Yes | Yes | RetailTransactionDiscountTrans.LineNum | |
ManualDiscountTypeKind of manual discount, such as an amount or a percentage on a line or on the total. | Enum
| No | Yes | RetailTransactionDiscountTrans.ManualDiscountType | |
OriginNumber of the location where the record originated. | String (50)RetailConnDistributionLocationId | No | Yes | RetailTransactionDiscountTrans.Origin | |
PercentageDiscount percentage. | RealDiscPct | No | Yes | RetailTransactionDiscountTrans.Percentage | |
PeriodicDiscountOfferIdID of the periodic discount offer, pointing to the periodic discount record. | String (20)RetailOfferIdEx3 | No | Yes | RetailPeriodicDiscount.OfferId | RetailTransactionDiscountTrans.PeriodicDiscountOfferId |
ReplicationCounterFromOriginCounter used to track replication of the record from where it was created. | IntegerRetailReplicationCounter | No | Yes | RetailTransactionDiscountTrans.ReplicationCounterFromOrigin | |
SaleLineNumLine number of the sales line that the discount applies to. | RealRetailTransactionSalesLineNum | No | Yes | RetailTransactionDiscountTrans.SaleLineNum | |
StoreIdNumber of the store where the transaction took place. | StringRetailStoreId | No | Yes | RetailStoreTable.StoreNumber | RetailTransactionDiscountTrans.StoreId |
TerminalIdNumber of the POS register that handled the transaction. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionDiscountTrans.TerminalId |
TransactionIdNumber of the retail transaction that the discount belongs to. | String (44)RetailTransactionId | Yes | Yes | RetailTransactionDiscountTrans.TransactionId | |
BundleIdID of the discount bundle that the discount is part of. | IntegerRetailDiscountBundleId | No | Yes | RetailTransactionDiscountTrans.BundleId | |
AppliedDiscountLineNumLine number of the applied discount.low confidence | RealLineNum | No | Yes | RetailTransactionDiscountTrans.AppliedDiscountLineNum | |
DiscountLineRecIdSystem record ID of a referenced discount line.low confidence | Int64RefRecId | No | No (private) | RetailTransactionDiscountTrans.DiscountLineRecId | |
EffectivePercentageEffective discount percentage. | RealDiscPct | No | Yes | RetailTransactionDiscountTrans.EffectivePercentage | |
RetailChannelTable_OMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record. | Int64RefRecId | No | No (private) | OMOperatingUnit.RecId | RetailChannelTable.OMOperatingUnitID |
OMOperatingUnit_PartyNumberUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | Yes | Yes | DirPartyTable.PartyNumber |
Foreign keys (5)
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.
Channel→RetailChannelTable.RecId(key of RetailChannelTable)Many RetailTransactionDiscountTrans records → zero or one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
PeriodicDiscountOfferId→RetailPeriodicDiscount.OfferId(key of RetailPeriodicDiscount)Many RetailTransactionDiscountTrans records → exactly one RetailPeriodicDiscount record
RetailPeriodicDiscount details: see GUPRetailDiscountEntity, GUPRetailDiscountV2Entity, RetailDiscountEntity
StoreId→RetailStoreTable.StoreNumber(key of RetailStoreTable)Many RetailTransactionDiscountTrans records → exactly one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
TerminalId→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionDiscountTrans records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
RetailChannelTable_OMOperatingUnitID→OMOperatingUnit.RecId(key of OMOperatingUnit)Zero or one RetailChannelTable record → exactly one OMOperatingUnit record
OMOperatingUnit details: see ACOCostCenterTypeEntity, OMOperatingUnitEntity, AssetPackingSlipEntity
Need help with RetailTransactionDiscountTransEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.