Data entity

RetailDiscountLineEntity

Holds the lines of a periodic discount, identified by the offer ID and line number. Each line can point to a product, category or variant and carries values for offer, mix and match, multibuy or threshold discounts. It also links to units of measure and threshold tiers.

Entity name
RetailDiscountLineEntity
Public entity name
RetailDiscountLine
OData collection
RetailDiscountLines
Category
Not set
Module
Merchandising
Read-only
No
Data management enabled
Yes
Configuration key
Retail
Keys
OfferId, LineNum
Staging table
RetailDiscountLineStaging

Use it in Power BI and Power Platform

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

  • RetailPeriodicDiscountLine · root
  • UnitOfMeasure · OuterJoin to RetailPeriodicDiscountLine · read-only
  • RetailDiscountThresholdTiers · OuterJoin to RetailPeriodicDiscountLine · read-only
  • RetailDiscountLineMixAndMatch · Derived to RetailPeriodicDiscountLine
  • RetailDiscountLineMultibuy · Derived to RetailPeriodicDiscountLine
  • RetailDiscountLineOffer · Derived to RetailPeriodicDiscountLine
  • RetailDiscountLineThresholdApplying · Derived to RetailPeriodicDiscountLine

Fields (31)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
DiscountPercentOrValuePercentage taken off the price on this line.Real
RetailDiscountPercentValue
NoYesRetailPeriodicDiscountLine.DiscountPercentOrValue
LineNumNumber of the line within the discount.Real
LineNum
NoYesRetailPeriodicDiscountLine.LineNum
OfferIdDiscount that the line belongs to. Points to the periodic discount.String (20)
RetailOfferIdEx3
YesYesRetailPeriodicDiscount.OfferIdRetailPeriodicDiscountLine.OfferId
UnitOfMeasureUnit for the line. Points to a unit record.Int64
UnitOfMeasureRecId
NoYesUnitOfMeasure.RecIdRetailPeriodicDiscountLine.UnitOfMeasure
UnitOfMeasureSymbolShort symbol that identifies the unit. It is the key of the table.String
UnitOfMeasureSymbol
NoYesUnitOfMeasure.Symbol
MixAndMatchDiscountTypeCalculation type of the discount: deal price, percentage off or amount off.Enum
RetailDealPriceDiscountPct
RetailDealPriceDiscountPctBase
  • DealPrice 0
  • DiscountPct 1
  • DiscountAmount 2
NoYesRetailDiscountLineMixAndMatch.discountType
MixAndMatchLineGroupMix and match line group that the line belongs to.String
RetailMixAndMatchLineGroup
NoYesRetailMixAndMatchLineGroupSetup.mixAndMatchLineGroupRetailDiscountLineMixAndMatch.lineGroup
MixAndMatchNumberOfItemsNeededNumber of products that must be bought for the line to count.Integer
RetailNumberOfItemsNeeded
NoYesRetailDiscountLineMixAndMatch.numberOfItemsNeeded
OfferDiscountAmountAmount taken off the price. Currency not stated in the metadata.Real
DiscAmount
NoYesRetailDiscountLineOffer.discAmount
OfferDiscountMethodCalculation type of the offer: percentage off, amount off or unit price.Enum
RetailDiscountOfferLineDiscountMethod
RetailDiscountOfferLineDiscMethodBase
  • PercentOff 0
  • AmountOff 1
  • Price 2
NoYesRetailDiscountLineOffer.discountMethod
OfferDiscountPercentagePercentage taken off the price.Real
RetailPriceDiscPct
NoYesRetailDiscountLineOffer.discPct
OfferPriceUnit price set by the offer. Currency not stated in the metadata.Real
RetailOfferPrice
NoYesRetailDiscountLineOffer.offerPrice
ItemIdItem number of the product that the discount line applies to.String (20)
ItemId
NoYesvirtual
ColorColour of the product variant that the line applies to.String
EcoResColorName
NoYesvirtual
SizeSize of the product variant that the line applies to.String
EcoResSizeName
NoYesvirtual
StyleStyle of the product variant that the line applies to.String
EcoResStyleName
NoYesvirtual
ConfigIdConfiguration of the product variant that the line applies to.String (50)
EcoResConfigurationName
NoYesvirtual
CategoryHierarchyNameName of the category hierarchy that the discount line refers to.String (128)
EcoResCategoryHierarchyName
NoYesvirtual
CategoryNameName of the product category that the discount line refers to.String (254)
EcoResCategoryName
NoYesvirtual
RetailGroupMemberLineSystem record ID of the group member line that is linked.Int64
RefRecId
NoYesRetailGroupMemberLine.RecIdRetailPeriodicDiscountLine.RetailGroupMemberLine
NameName of the line.String (60)
Name
NoYesRetailPeriodicDiscountLine.Name
DescriptionFree-text description of the line.String (-1)
RetailMemo
NoYesRetailPeriodicDiscountLine.Description
LineTypeWhether the line includes or excludes the products it covers.Enum
RetailDiscountLineType
RetailDiscountLineIncludeExcludeTypeBase
  • Include 0
  • Exclude 1
NoYesRetailPeriodicDiscountLine.LineType
OfferDiscountMethodN1Discount method, which adds the option of a discount price including tax.Enum
RetailOfferLineDiscountMethodN1
RetailOfferLineDiscountMethodBaseN1
  • PercentOff 0
  • AmountOff 1
  • Price 2
  • PriceInclTax 3
NoYesRetailDiscountLineOffer.discountMethodN1
OfferPriceInclTaxN1Discounted sale price including tax, used with the second discount method field.Real
RetailOfferPriceInclTax
NoYesRetailDiscountLineOffer.offerPriceInclTaxN1
OfferPriceN1Unit price set by the offer, used with the second discount method field.Real
RetailOfferPrice
NoYesRetailDiscountLineOffer.offerPriceN1
ThresholdApplyingLineDiscountMethodDiscount method for the threshold line: percentage off, amount off or unit price.Enum
RetailDiscountThresholdLineDiscountMethod
RetailDiscountThresholdLineDiscountMethodBase
  • DiscountPercent 0
  • DiscountAmount 1
  • DealPrice 2
NoYesRetailDiscountLineThresholdApplying.ThresholdLineDiscountMethod
ThresholdTierAmountAmount at which this tier starts to apply.Real
Amount
NoYesRetailDiscountThresholdTiers.AmountThreshold
ThresholdTierRecIdThreshold discount tier, stored as its record ID.Int64NoNo (private)RetailDiscountThresholdTiers.RecIdRetailDiscountLineThresholdApplying.Tier
IsDiscountApplyingLineShows whether this is a line that the discount is applied to.Enum
RetailIsDiscountApplyingLine
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailPeriodicDiscountLine.IsDiscountApplyingLine
ThresholdLineQuantityLimitLimit on the quantity that the threshold discount applies to.Real
RetailDiscountThresholdLineQuantityLimit
NoYesRetailDiscountLineThresholdApplying.QuantityLimit

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

Email sales@drdynamics.co.uk