Data entity

GUPRetailDiscountLineV2Entity

Second version of the periodic discount lines for pricing management. Each line has a line number, line group, discount method and values such as percentage off, amount off or unit price. It also has exclusion data and price attribute values (Line1 to Line15). The key is the offer ID plus the line number.

Entity name
GUPRetailDiscountLineV2Entity
Public entity name
DiscountAndMarginComponentPriceAdjustmentLineV2
OData collection
DiscountAndMarginComponentPriceAdjustmentLinesV2
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
GUPRetailDiscountLineV2Staging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/DiscountAndMarginComponentPriceAdjustmentLinesV2
Dataverse virtual table
mserp_gupretaildiscountlinev2entity. 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
  • RetailDiscountThresholdTiers · OuterJoin to RetailPeriodicDiscountLine
  • RetailPeriodicDiscount · InnerJoin to RetailPeriodicDiscountLine · read-only
  • RetailPeriodicDiscount_RetailDiscountThreshold (table RetailDiscountThreshold) · Derived to RetailPeriodicDiscount
  • RetailPeriodicDiscount_RetailShippingThresholdDiscounts (table RetailShippingThresholdDiscounts) · Derived to RetailPeriodicDiscount
  • RetailPeriodicDiscount_RetailDiscountMixAndMatch (table RetailDiscountMixAndMatch) · Derived to RetailPeriodicDiscount
  • RetailPeriodicDiscount_RetailDiscountMultibuy (table RetailDiscountMultibuy) · Derived to RetailPeriodicDiscount
  • RetailPeriodicDiscount_RetailDiscountOffer (table RetailDiscountOffer) · Derived to RetailPeriodicDiscount
  • RetailPeriodicDiscount_GUPFreeItemDiscount (table GUPFreeItemDiscount) · Derived to RetailPeriodicDiscount
  • GUPPricingRuleConditionLookup · OuterJoin to RetailPeriodicDiscountLine
  • InventDim · OuterJoin to RetailPeriodicDiscountLine
  • UnitOfMeasure · OuterJoin to RetailPeriodicDiscountLine
  • RetailDiscountLineMixAndMatch · Derived to RetailPeriodicDiscountLine
  • RetailDiscountLineMultibuy · Derived to RetailPeriodicDiscountLine
  • RetailDiscountLineOffer · Derived to RetailPeriodicDiscountLine
  • RetailDiscountLineThresholdApplying · Derived to RetailPeriodicDiscountLine
  • GUPFreeItemDiscountLine · Derived to RetailPeriodicDiscountLine

Fields (54)

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
OfferIdIdentifier of the discount.String (20)
RetailOfferIdEx3
YesYesRetailPeriodicDiscount.OfferId
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
FreeItemGroupNumber of the free item group for the discount line.Integer
GUPFreeItemGroupId
NoYesGUPFreeItemDiscountLine.FreeItemGroup
UnitAppliesToAllShows whether the line applies to all units.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailPeriodicDiscountLine.UnitAppliesToAll
PriceAttributeGroupTypeWhether the line applies to a group or to all.Enum
GUPPricingAttributeGroupCodeLine
GUPGroupAll
  • Group 0
  • All 1
NoYesRetailPeriodicDiscountLine.LinePricingGroupCode
LineExclusionText listing the items excluded from the rule.String (500)
GUPAttributeExclusion
NoYesGUPPricingRuleConditionLookup.Exclusion
LineExclusionTypeKind of item excluded by the rule: product, product variant or customer.Enum
GUPPricingRuleExclusionType
  • Product 0
  • ProductVariant 1
  • Customer 2
NoYesGUPPricingRuleConditionLookup.ExclusionType
PriceAttributeGroupNamePrice attribute group the conditions belong to.String (60)
GUPPricingAttributeGroupName
NoYesGUPPricingRuleConditionLookup.PriceAttributeGroupName
Line1First condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue1
Line2Second condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue2
Line3Third condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue3
Line4Fourth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue4
Line5Fifth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue5
Line6Sixth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue6
Line7Seventh condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue7
Line8Eighth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue8
Line9Ninth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue9
Line10Tenth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue10
Line11Eleventh condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue11
Line12Twelfth condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue12
Line13Thirteenth condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue13
Line14Fourteenth condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue14
Line15Fifteenth condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue15
LinePricingRuleSystem record ID of the price rule used on the line.Int64
GUPRefRecId
NoNo (private)GUPPricingRule.RecIdRetailPeriodicDiscountLine.LinePricingRule
IsMandatoryShows whether the line is mandatory.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailPeriodicDiscountLine.IsMandatory
LeastAmountSmallest line amount required, as the label says.Real
PriceDiscAmount
NoYesRetailPeriodicDiscountLine.LeastAmount
LeastQuantitySmallest line quantity required.Real
GUPLeastQuantity
NoYesRetailPeriodicDiscountLine.LeastQuantity
UnitOfMeasureSymbolShort symbol that identifies the unit. It is the key of the table.String
UnitOfMeasureSymbol
NoYesUnitOfMeasure.Symbol
ConfigurationConfiguration of the product.String (50)
EcoResItemConfigurationName
NoYesEcoResConfiguration.NameInventDim.configId
SizeSize of the product.String
EcoResItemSizeName
NoYesEcoResSize.NameInventDim.InventSizeId
ColorColour of the product.String
EcoResItemColorName
NoYesEcoResColor.NameInventDim.InventColorId
StyleStyle of the product.String
EcoResItemStyleName
NoYesEcoResStyle.NameInventDim.InventStyleId
SiteSite of the inventory.String
InventSiteId
NoYesInventSite.SiteIdInventDim.InventSiteId
WarehouseWarehouse of the inventory.String
InventLocationId
NoYesInventLocation.InventLocationIdInventDim.InventLocationId
UnitOfMeasureUnit for the line. Points to a unit record.Int64
UnitOfMeasureRecId
NoNo (private)UnitOfMeasure.RecIdRetailPeriodicDiscountLine.UnitOfMeasure

Foreign keys (10)

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

Email sales@drdynamics.co.uk