Data entity

GUPRetailDiscountV2Entity

Second version of the periodic discounts for pricing management. Each discount has a name, status, validity dates, currency, concurrency mode and pricing priority. It also holds settings for mix and match, quantity, threshold, free item and shipping threshold discounts. The key is the offer ID.

Entity name
GUPRetailDiscountV2Entity
Public entity name
DiscountAndMarginComponentPriceAdjustmentV2
OData collection
DiscountAndMarginComponentPriceAdjustmentsV2
Category
Not set
Module
Other (no module in the metadata)
Read-only
No
Data management enabled
Yes
Configuration key
Retail
Keys
OfferId
Staging table
GUPRetailDiscountV2Staging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/DiscountAndMarginComponentPriceAdjustmentsV2
Dataverse virtual table
mserp_gupretaildiscountv2entity. 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
  • GUPPricingRuleConditionLookup · OuterJoin to RetailPeriodicDiscount
  • RetailDiscountCode · OuterJoin to RetailPeriodicDiscount
  • UnitOfMeasure · OuterJoin to RetailPeriodicDiscount
  • RetailDiscountMixAndMatch · Derived to RetailPeriodicDiscount
  • RetailDiscountMultibuy · Derived to RetailPeriodicDiscount
  • RetailDiscountOffer · Derived to RetailPeriodicDiscount
  • RetailDiscountThreshold · Derived to RetailPeriodicDiscount
  • GUPFreeItemDiscount · Derived to RetailPeriodicDiscount
  • RetailShippingThresholdDiscounts · Derived to RetailPeriodicDiscount

Fields (65)

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
DiscountCodeDiscount code text.String (60)
RetailDiscountCodeId
NoYesRetailDiscountCode.DiscountCode
BarCodeBar code linked to the discount code.String (80)
ItemBarCode
NoYesRetailDiscountCode.BarCode
DiscountCodeIdSystem record ID of the discount code that is linked.Int64
RefRecId
NoNo (private)RetailDiscountCode.RecIdRetailPeriodicDiscount.DiscountCode
OfferQuantityLimitWhole number that sets a limit on the quantity for the offer.Integer
RetailDiscountQuantityLimit
NoYesRetailDiscountOffer.QuantityLimit
FreeItemCalculationMethodCalculation type of the free item rule: stepped or normal.Enum
GUPFreeItemCalculationMethod
  • Stepped 0
  • Normal 1
NoYesGUPFreeItemDiscount.FreeItemCalculationMethod
FreeItemCriteriaTypeShows whether the free item rule is based on quantity or amount.Enum
GUPFreeItemCriteriaType
  • Quantity 0
  • Amount 1
NoYesGUPFreeItemDiscount.FreeItemCriteriaType
RepeatableShows if the free item can repeat: not at all, by header or by line.Enum
GUPFreeItemRepeatable
  • No 0
  • ByHeader 1
  • ByLine 2
NoYesGUPFreeItemDiscount.Repeatable
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
HeaderPricingRuleSystem record ID of the price rule used at header level.Int64
GUPRefRecId
NoNo (private)GUPPricingRule.RecIdRetailPeriodicDiscount.HeaderPricingRule
PriceAttributeGroupTypeWhether the header applies to a group or to all.Enum
GUPPricingAttributeGroupCodeHeader
GUPGroupAll
  • Group 0
  • All 1
NoYesRetailPeriodicDiscount.HeaderPricingGroupCode
PriceComponentCodeNameName of the price component code. Points to a price component code record.String (80)
GUPPriceComponentCodeName
YesYesGUPPriceComponentCode.NameRetailPeriodicDiscount.PriceComponentCodeName
PriceAttributeGroupNamePrice attribute group the conditions belong to.String (60)
GUPPricingAttributeGroupName
NoYesGUPPricingRuleConditionLookup.PriceAttributeGroupName
HeaderExclusionTypeKind of item excluded by the rule: product, product variant or customer.Enum
GUPPricingRuleExclusionType
  • Product 0
  • ProductVariant 1
  • Customer 2
NoYesGUPPricingRuleConditionLookup.ExclusionType
HeaderExclusionText listing the items excluded from the rule.String (500)
GUPAttributeExclusion
NoYesGUPPricingRuleConditionLookup.Exclusion
Header1First condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue1
Header2Second condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue2
Header3Third condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue3
Header4Fourth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue4
Header5Fifth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue5
Header6Sixth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue6
Header7Seventh condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue7
Header8Eighth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue8
Header9Ninth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue9
Header10Tenth condition value of the rule.String (1000)
GUPAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue10
Header11Eleventh condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue11
Header12Twelfth condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue12
Header13Thirteenth condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue13
Header14Fourteenth condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue14
Header15Fifteenth condition value of the rule, a shorter entity attribute value.String (200)
GUPEntityAttributeValue
NoYesGUPPricingRuleConditionLookup.AttributeValue15
DiscountVendorClaimGroupNameName of the claim group for the discount. Points to a discount claim group record.String (60)
GUPDiscountVendorClaimGroupName
NoYesGUPDiscountVendorClaimGroup.NameRetailPeriodicDiscount.DiscountVendorClaimGroupName
MaxCriteriaTypeWhether the maximum is an amount or a quantity.Enum
GUPDiscountMaxCriteriaType
  • Amount 0
  • Quantity 1
NoYesRetailPeriodicDiscount.MaxCriteriaType
MaxQtyOrAmountMaximum quantity or amount for the discount. The criteria type says which.Real
GUPDiscountMaxQtyAmount
NoYesRetailPeriodicDiscount.MaxQtyOrAmount
ShouldUseIntervalShows whether an interval is used in the calculation.Enum
GUPShouldUseIntervalCalculation
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailPeriodicDiscount.ShouldUseInterval
UnitOfMeasureUnit used for the maximum quantity. Points to a unit record.Int64
UnitOfMeasureRecId
NoNo (private)UnitOfMeasure.RecIdRetailPeriodicDiscount.MaxUnitOfMeasure
UnitOfMeasureSymbolShort symbol that identifies the unit. It is the key of the table.String
UnitOfMeasureSymbol
NoYesUnitOfMeasure.Symbol
ClaimableShows whether the discount can be claimed.Enum
GUPDiscountClaimable
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailPeriodicDiscount.Claimable
DiscountClaimPostingOffsetName of the claim posting profile used for the offset. Points to a claim posting profile record.String (60)
Name
NoYesGUPDiscountVendorClaimPostingProfile.NameRetailPeriodicDiscount.DiscountClaimPostingOffset
DlvModeIdMode of delivery that the discount relates to. Points to the delivery mode.String
DlvModeId
NoYesDlvMode.CodeRetailShippingThresholdDiscounts.DlvModeId
IncludeGenericCurrencyFlag that allows the attribute-based price components to be used with a generic currency.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailPeriodicDiscount.IncludeGenericCurrency

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

Email sales@drdynamics.co.uk