Data entity

RetailDiscountLineV2Entity

Holds the lines of retail discounts. Each line is keyed by the discount offer ID and line number. It brings together applicability rules and mix and match, multibuy, offer and threshold line details. It also links to products, categories, variants, units, delivery modes, sites, warehouses and catalogues.

Entity name
RetailDiscountLineV2Entity
Public entity name
RetailDiscountLineV2
OData collection
RetailDiscountLinesV2
Category
Not set
Module
Other (no module in the metadata)
Read-only
No
Data management enabled
Yes
Configuration key
Retail
Keys
OfferId, LineNum
Staging table
RetailDiscountLineV2Staging

Use it in Power BI and Power Platform

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

  • RetailDiscountApplicabilityRule · root
  • RetailPeriodicDiscountLine · InnerJoin to RetailDiscountApplicabilityRule
  • RetailDiscountThresholdTiers · OuterJoin to RetailPeriodicDiscountLine · read-only
  • RetailDiscountLineMixAndMatch · Derived to RetailPeriodicDiscountLine
  • RetailDiscountLineMultibuy · Derived to RetailPeriodicDiscountLine
  • RetailDiscountLineOffer · Derived to RetailPeriodicDiscountLine
  • RetailDiscountLineThresholdApplying · Derived to RetailPeriodicDiscountLine
  • EcoResCategory · OuterJoin to RetailDiscountApplicabilityRule · read-only
  • EcoResCategoryHierarchy · OuterJoin to EcoResCategory · read-only
  • EcoResCategory_PCClass (table PCClass) · Derived to EcoResCategory
  • EcoResProduct · OuterJoin to RetailDiscountApplicabilityRule · read-only
  • EcoResProduct_EcoResDistinctProduct (table EcoResDistinctProduct) · Derived to EcoResProduct
  • EcoResProduct_EcoResDistinctProductVariant (table EcoResDistinctProductVariant) · Derived to EcoResProduct_EcoResDistinctProduct
  • EcoResProduct_EcoResProductMaster (table EcoResProductMaster) · Derived to EcoResProduct
  • EcoResDistinctProductVariant · OuterJoin to RetailDiscountApplicabilityRule · read-only
  • UnitOfMeasure · OuterJoin to RetailDiscountApplicabilityRule · read-only
  • DlvMode · OuterJoin to RetailDiscountApplicabilityRule · read-only
  • InventSite · OuterJoin to RetailDiscountApplicabilityRule · read-only
  • InventLocation · OuterJoin to RetailDiscountApplicabilityRule · read-only
  • Catalog · OuterJoin to RetailDiscountApplicabilityRule · read-only
  • EcoResStyle · OuterJoin to RetailDiscountApplicabilityRule · read-only
  • EcoResSize · OuterJoin to RetailDiscountApplicabilityRule · read-only
  • EcoResConfiguration · OuterJoin to RetailDiscountApplicabilityRule · read-only
  • EcoResColor · OuterJoin to RetailDiscountApplicabilityRule · read-only

Fields (44)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
OfferIdDiscount that the line belongs to. Points to the periodic discount.String (20)
RetailOfferIdEx3
YesYesRetailPeriodicDiscount.OfferIdRetailPeriodicDiscountLine.OfferId
LineNumNumber of the line within the discount.Real
LineNum
YesYesRetailPeriodicDiscountLine.LineNum
PropValue0Criteria value in position 0 of the rule.low confidenceString (100)
Criterias
NoYesRetailDiscountApplicabilityRule.PropValue0
PropValue1Criteria value in position 1 of the rule.low confidenceString (100)
Criterias
NoYesRetailDiscountApplicabilityRule.PropValue1
PropValue2Criteria value in position 2 of the rule.low confidenceString (100)
Criterias
NoYesRetailDiscountApplicabilityRule.PropValue2
PropValue3Criteria value in position 3 of the rule.low confidenceString (100)
Criterias
NoYesRetailDiscountApplicabilityRule.PropValue3
PropValue4Criteria value in position 4 of the rule.low confidenceString (100)
Criterias
NoYesRetailDiscountApplicabilityRule.PropValue4
PropValue5Criteria value in position 5 of the rule.low confidenceString (100)
Criterias
NoYesRetailDiscountApplicabilityRule.PropValue5
PropValue6Criteria value in position 6 of the rule.low confidenceString (100)
Criterias
NoYesRetailDiscountApplicabilityRule.PropValue6
PropValue7Criteria value in position 7 of the rule.low confidenceString (100)
Criterias
NoYesRetailDiscountApplicabilityRule.PropValue7
PropValue8Criteria value in position 8 of the rule.low confidenceString (100)
Criterias
NoYesRetailDiscountApplicabilityRule.PropValue8
PropValue9Criteria value in position 9 of the rule.low confidenceString (100)
Criterias
NoYesRetailDiscountApplicabilityRule.PropValue9
CategoryHierarchyNameName of the category hierarchy.String (128)
EcoResCategoryHierarchyName
NoYesEcoResCategoryHierarchy.Name
CategoryNameName of the category.String (254)
EcoResCategoryName
NoYesEcoResCategory.Name
DisplayProductNumberProduct number shown to users. It identifies the product.String (70)
EcoResProductDisplayProductNumber
NoYesEcoResProduct.DisplayProductNumber
ProductVariant_DisplayProductNumberProduct number shown to users. It identifies the product.String (70)
EcoResProductDisplayProductNumber
NoYesEcoResProduct.DisplayProductNumber
UnitOfMeasure_SymbolShort symbol that identifies the unit. It is the key of the table.String
UnitOfMeasureSymbol
NoYesUnitOfMeasure.Symbol
DlvMode_CodeCode that identifies the mode of delivery.String
DlvModeId
NoYesDlvMode.Code
InventSiteIdThe unique ID of the site.String
InventSiteId
NoYesInventSite.SiteId
InventLocationIdID of the warehouse. It is the key of the table.String
InventLocationId
NoYesInventLocation.InventLocationId
CatalogIdCatalog number that identifies the catalog.String
RetailCatalogId
NoYesCatalog.CatalogId
EcoResStyleNameName of the style.String
EcoResStyleName
NoYesEcoResStyle.Name
EcoResSizeNameName of the size.String
EcoResSizeName
NoYesEcoResSize.Name
EcoResConfigurationNameThe name of the configuration.String (50)
EcoResConfigurationName
NoYesEcoResConfiguration.Name
EcoResColorNameThe name of the colour.String
EcoResColorName
NoYesEcoResColor.Name
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
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
DiscountPercentOrValuePercentage taken off the price on this line.Real
RetailDiscountPercentValue
NoYesRetailPeriodicDiscountLine.DiscountPercentOrValue

Foreign keys (3)

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

Email sales@drdynamics.co.uk