Data entity

RetailDiscountEntity

Holds periodic discounts used in retail, keyed by the offer ID. It combines the main discount record with details for offer, mix and match, multibuy (quantity) and threshold discounts. It also carries validity dates, status, currency, priority and a linked dimension combination.

Entity name
RetailDiscountEntity
Public entity name
RetailDiscount
OData collection
RetailDiscounts
Category
Not set
Module
Merchandising
Read-only
No
Data management enabled
Yes
Configuration key
None
Keys
OfferId
Staging table
RetailDiscountStaging

Use it in Power BI and Power Platform

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

  • RetailPeriodicDiscount · root
  • DiscountLedgerDimensionDAVC (table DimensionCombinationEntity) · OuterJoin to RetailPeriodicDiscount · read-only
  • RetailDiscountMixAndMatch · Derived to RetailPeriodicDiscount
  • RetailDiscountMultibuy · Derived to RetailPeriodicDiscount
  • RetailDiscountOffer · Derived to RetailPeriodicDiscount
  • RetailDiscountThreshold · Derived to RetailPeriodicDiscount

Fields (34)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
ConcurrencyModeRule for how this discount works together with other discounts, such as exclusive, best price or compounded.Enum
RetailDiscountConcurrency
  • Exclusive 0
  • BestPrice 1
  • Compounded 2
  • AlwaysApply 3
  • PriceAttributeCombinationPriority 4
NoYesRetailPeriodicDiscount.ConcurrencyMode
CurrencyCodeCurrency of the discount. Points to a currency record.String (3)
CurrencyCode
YesYesCurrency.CurrencyCodeRetailPeriodicDiscount.CurrencyCode
DateValidationTypeWhether date validation is standard or advanced.Enum
RetailDateValidationTypeBase
  • Standard 1
  • Advanced 0
NoYesRetailPeriodicDiscount.DateValidationType
DescriptionFree-text description of the discount.String (-1)
RetailMemo
NoYesRetailPeriodicDiscount.Description
DisclaimerFree-text disclaimer for the discount.String (-1)
RetailMemo
NoYesRetailPeriodicDiscount.Disclaimer
DiscountPercentValuePercentage taken off the price.Real
RetailDiscountPercentValue
NoYesRetailPeriodicDiscount.DiscountPercentValue
IsDiscountCodeRequiredShows whether a coupon code must be entered for the discount.Enum
RetailDiscountCodeRequired
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailPeriodicDiscount.IsDiscountCodeRequired
NameName of the discount.String (60)
Name
NoYesRetailPeriodicDiscount.Name
OfferIdIdentifier of the discount.String (20)
RetailOfferIdEx3
NoYesRetailPeriodicDiscount.OfferId
PeriodicDiscountTypeKind of discount, such as quantity, mix and match, simple, threshold or free item.Enum
RetailDiscountOfferTypeBase
  • Multibuy 0
  • MixAndMatch 1
  • DiscountOffer 2
  • Promotion 3
  • Threshold 4
  • LeastExpensiveFavorRetailer 5
  • DiscountOfferLineQuantityLimit 6
  • Shipping 7
  • FreeItem 8
NoYesRetailPeriodicDiscount.PeriodicDiscountType
StatusShows whether the discount is enabled or disabled.Enum
RetailDisabledEnabled
  • Disabled 0
  • Enabled 1
NoYesRetailPeriodicDiscount.Status
ValidationPeriodIdDiscount validation period that sets when the discount is valid.String
RetailDiscountValidationPeriodId
NoYesRetailDiscountValidationPeriod.periodIdRetailPeriodicDiscount.ValidationPeriodId
ValidFromFirst date on which the discount is valid.Date
ValidFromDate
NoYesRetailPeriodicDiscount.ValidFrom
ValidToLast date on which the discount is valid.Date
ValidToDate
NoYesRetailPeriodicDiscount.ValidTo
MultibuyDiscountTypeShows how the multibuy discount is expressed: unit price, percentage off or amount off.Enum
RetailMultibuyDiscountType
RetailDiscountTypeEnum
  • UnitPrice 0
  • DiscPct 1
  • UnitPriceDiscAmt 2
NoYesRetailDiscountMultibuy.MultibuyDiscountType
ThresholdCountNonDiscountItemsYes/No flag for whether non-discountable items count towards the threshold.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailDiscountThreshold.CountNonDiscountItems
MixAndMatchDealPriceDeal price of the mix and match discount. Currency not stated in the metadata.Real
RetailDealPriceValue
NoYesRetailDiscountMixAndMatch.DealPriceValue
MixAndMatchDiscountAmountAmount off given by the discount. Currency not stated in the metadata.Real
RetailDiscountAmountValue
NoYesRetailDiscountMixAndMatch.DiscountAmountValue
MixAndMatchDiscountTypeCalculation type: deal price, percentage off, amount off, least expensive or line spec.Enum
RetailMixAndMatchDiscount
RetailMixAndMatchDiscountType
  • DealPrice 0
  • DiscountPct 1
  • DiscountAmount 2
  • LeastExpensive 3
  • LineSpec 4
NoYesRetailDiscountMixAndMatch.MixAndMatchDiscountType
MixAndMatchNoOfLeastExpensiveLinesNumber of least expensive lines the discount applies to.Integer
RetailNoOfLeastExpensiveLines
NoYesRetailDiscountMixAndMatch.NoOfLeastExpensiveLines
MixAndMatchNumberOfTimesApplicableNumber of times the discount can be applied.Integer
RetailNumberOfTimesApplicable
NoNo (private)RetailDiscountMixAndMatch.numberOfTimesApplicable
MixAndMatchLeastExpensiveModeMode for multiple occurrences: favour the customer or favour the retailer.Enum
RetailLeastExpensiveMode
  • FavorCustomer 0
  • FavorRetailer 1
NoYesRetailDiscountMixAndMatch.LeastExpensiveMode
DiscountCodeCode linked to the discount, which a customer may need to enter when a coupon is required.String (60)
RetailDiscountCodeId
NoYesvirtual
BarCodeBar code linked to the discount, in the item bar code format.String (80)
ItemBarCode
NoYesvirtual
DiscountCodeIdSystem record ID of the discount code that is linked.Int64
RefRecId
NoNo (private)RetailDiscountCode.RecIdRetailPeriodicDiscount.DiscountCode
DiscountLedgerDimensionDisplayValueFull combination of dimension values, shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
DiscountLedgerDimensionLedger dimension combination used as the discount account.Int64
LedgerDimensionDefaultAccount
NoNo (private)DimensionAttributeValueCombination.RecIdRetailPeriodicDiscount.DiscountLedgerDimension
DiscountRecordIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesRetailPeriodicDiscount.RecId
OfferQuantityLimitWhole number that sets a limit on the quantity for the offer.Integer
RetailDiscountQuantityLimit
NoYesRetailDiscountOffer.QuantityLimit
PrintDescriptionOnFiscalReceiptText that can be printed on the fiscal receipt for this discount.String (50)
RetailPrintDescriptionOnFiscalReceipt
NoYesRetailPeriodicDiscount.PrintDescriptionOnFiscalReceipt
PricingPriorityNumberPricing priority number of the discount. Points to a pricing priority record.Integer
RetailPricingPriorityNumber
NoYesRetailPricingPriorityTable.PriorityNumberRetailPeriodicDiscount.PricingPriorityNumber
MatchAllAssociatedPriceGroupsShows whether all linked price groups must match.Enum
RetailMatchAllAssociatedPriceGroups
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailPeriodicDiscount.MatchAllAssociatedPriceGroups
ProcessingStatusPublishing state of the discount: draft, publishing, published or error.Enum
RetailPricingDiscountProcessingStatus
  • Draft 0
  • Processing 1
  • Processed 2
  • Failed 3
NoYesRetailPeriodicDiscount.ProcessingStatus
DisabledSinceDate from which the discount has been disabled.Date
RetailDiscountDisabledSinceDate
NoYesRetailPeriodicDiscount.DisabledSince

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.

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

Email sales@drdynamics.co.uk