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· rootGUPPricingRuleConditionLookup· OuterJoin toRetailPeriodicDiscountRetailDiscountCode· OuterJoin toRetailPeriodicDiscountUnitOfMeasure· OuterJoin toRetailPeriodicDiscountRetailDiscountMixAndMatch· Derived toRetailPeriodicDiscountRetailDiscountMultibuy· Derived toRetailPeriodicDiscountRetailDiscountOffer· Derived toRetailPeriodicDiscountRetailDiscountThreshold· Derived toRetailPeriodicDiscountGUPFreeItemDiscount· Derived toRetailPeriodicDiscountRetailShippingThresholdDiscounts· Derived toRetailPeriodicDiscount
Fields (65)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ConcurrencyModeRule for how this discount works together with other discounts, such as exclusive, best price or compounded. | Enum
| No | Yes | RetailPeriodicDiscount.ConcurrencyMode | |
CurrencyCodeCurrency of the discount. Points to a currency record. | String (3)CurrencyCode | Yes | Yes | Currency.CurrencyCode | RetailPeriodicDiscount.CurrencyCode |
DateValidationTypeWhether date validation is standard or advanced. | Enum
| No | Yes | RetailPeriodicDiscount.DateValidationType | |
DescriptionFree-text description of the discount. | String (-1)RetailMemo | No | Yes | RetailPeriodicDiscount.Description | |
DisclaimerFree-text disclaimer for the discount. | String (-1)RetailMemo | No | Yes | RetailPeriodicDiscount.Disclaimer | |
DiscountPercentValuePercentage taken off the price. | RealRetailDiscountPercentValue | No | Yes | RetailPeriodicDiscount.DiscountPercentValue | |
IsDiscountCodeRequiredShows whether a coupon code must be entered for the discount. | EnumRetailDiscountCodeRequired
| No | Yes | RetailPeriodicDiscount.IsDiscountCodeRequired | |
NameName of the discount. | String (60)Name | No | Yes | RetailPeriodicDiscount.Name | |
OfferIdIdentifier of the discount. | String (20)RetailOfferIdEx3 | No | Yes | RetailPeriodicDiscount.OfferId | |
PeriodicDiscountTypeKind of discount, such as quantity, mix and match, simple, threshold or free item. | Enum
| No | Yes | RetailPeriodicDiscount.PeriodicDiscountType | |
StatusShows whether the discount is enabled or disabled. | Enum
| No | Yes | RetailPeriodicDiscount.Status | |
ValidationPeriodIdDiscount validation period that sets when the discount is valid. | StringRetailDiscountValidationPeriodId | No | Yes | RetailDiscountValidationPeriod.periodId | RetailPeriodicDiscount.ValidationPeriodId |
ValidFromFirst date on which the discount is valid. | DateValidFromDate | No | Yes | RetailPeriodicDiscount.ValidFrom | |
ValidToLast date on which the discount is valid. | DateValidToDate | No | Yes | RetailPeriodicDiscount.ValidTo | |
MultibuyDiscountTypeShows how the multibuy discount is expressed: unit price, percentage off or amount off. | EnumRetailMultibuyDiscountType
| No | Yes | RetailDiscountMultibuy.MultibuyDiscountType | |
ThresholdCountNonDiscountItemsYes/No flag for whether non-discountable items count towards the threshold. | EnumNoYesId
| No | Yes | RetailDiscountThreshold.CountNonDiscountItems | |
MixAndMatchDealPriceDeal price of the mix and match discount. Currency not stated in the metadata. | RealRetailDealPriceValue | No | Yes | RetailDiscountMixAndMatch.DealPriceValue | |
MixAndMatchDiscountAmountAmount off given by the discount. Currency not stated in the metadata. | RealRetailDiscountAmountValue | No | Yes | RetailDiscountMixAndMatch.DiscountAmountValue | |
MixAndMatchDiscountTypeCalculation type: deal price, percentage off, amount off, least expensive or line spec. | EnumRetailMixAndMatchDiscount
| No | Yes | RetailDiscountMixAndMatch.MixAndMatchDiscountType | |
MixAndMatchNoOfLeastExpensiveLinesNumber of least expensive lines the discount applies to. | IntegerRetailNoOfLeastExpensiveLines | No | Yes | RetailDiscountMixAndMatch.NoOfLeastExpensiveLines | |
MixAndMatchNumberOfTimesApplicableNumber of times the discount can be applied. | IntegerRetailNumberOfTimesApplicable | No | No (private) | RetailDiscountMixAndMatch.numberOfTimesApplicable | |
MixAndMatchLeastExpensiveModeMode for multiple occurrences: favour the customer or favour the retailer. | Enum
| No | Yes | RetailDiscountMixAndMatch.LeastExpensiveMode | |
DiscountCodeDiscount code text. | String (60)RetailDiscountCodeId | No | Yes | RetailDiscountCode.DiscountCode | |
BarCodeBar code linked to the discount code. | String (80)ItemBarCode | No | Yes | RetailDiscountCode.BarCode | |
DiscountCodeIdSystem record ID of the discount code that is linked. | Int64RefRecId | No | No (private) | RetailDiscountCode.RecId | RetailPeriodicDiscount.DiscountCode |
OfferQuantityLimitWhole number that sets a limit on the quantity for the offer. | IntegerRetailDiscountQuantityLimit | No | Yes | RetailDiscountOffer.QuantityLimit | |
FreeItemCalculationMethodCalculation type of the free item rule: stepped or normal. | Enum
| No | Yes | GUPFreeItemDiscount.FreeItemCalculationMethod | |
FreeItemCriteriaTypeShows whether the free item rule is based on quantity or amount. | Enum
| No | Yes | GUPFreeItemDiscount.FreeItemCriteriaType | |
RepeatableShows if the free item can repeat: not at all, by header or by line. | Enum
| No | Yes | GUPFreeItemDiscount.Repeatable | |
PrintDescriptionOnFiscalReceiptText that can be printed on the fiscal receipt for this discount. | String (50)RetailPrintDescriptionOnFiscalReceipt | No | Yes | RetailPeriodicDiscount.PrintDescriptionOnFiscalReceipt | |
PricingPriorityNumberPricing priority number of the discount. Points to a pricing priority record. | IntegerRetailPricingPriorityNumber | No | Yes | RetailPricingPriorityTable.PriorityNumber | RetailPeriodicDiscount.PricingPriorityNumber |
MatchAllAssociatedPriceGroupsShows whether all linked price groups must match. | EnumRetailMatchAllAssociatedPriceGroups
| No | Yes | RetailPeriodicDiscount.MatchAllAssociatedPriceGroups | |
ProcessingStatusPublishing state of the discount: draft, publishing, published or error. | Enum
| No | Yes | RetailPeriodicDiscount.ProcessingStatus | |
DisabledSinceDate from which the discount has been disabled. | DateRetailDiscountDisabledSinceDate | No | Yes | RetailPeriodicDiscount.DisabledSince | |
HeaderPricingRuleSystem record ID of the price rule used at header level. | Int64GUPRefRecId | No | No (private) | GUPPricingRule.RecId | RetailPeriodicDiscount.HeaderPricingRule |
PriceAttributeGroupTypeWhether the header applies to a group or to all. | EnumGUPPricingAttributeGroupCodeHeader
| No | Yes | RetailPeriodicDiscount.HeaderPricingGroupCode | |
PriceComponentCodeNameName of the price component code. Points to a price component code record. | String (80)GUPPriceComponentCodeName | Yes | Yes | GUPPriceComponentCode.Name | RetailPeriodicDiscount.PriceComponentCodeName |
PriceAttributeGroupNamePrice attribute group the conditions belong to. | String (60)GUPPricingAttributeGroupName | No | Yes | GUPPricingRuleConditionLookup.PriceAttributeGroupName | |
HeaderExclusionTypeKind of item excluded by the rule: product, product variant or customer. | Enum
| No | Yes | GUPPricingRuleConditionLookup.ExclusionType | |
HeaderExclusionText listing the items excluded from the rule. | String (500)GUPAttributeExclusion | No | Yes | GUPPricingRuleConditionLookup.Exclusion | |
Header1First condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue1 | |
Header2Second condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue2 | |
Header3Third condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue3 | |
Header4Fourth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue4 | |
Header5Fifth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue5 | |
Header6Sixth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue6 | |
Header7Seventh condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue7 | |
Header8Eighth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue8 | |
Header9Ninth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue9 | |
Header10Tenth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue10 | |
Header11Eleventh condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue11 | |
Header12Twelfth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue12 | |
Header13Thirteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue13 | |
Header14Fourteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue14 | |
Header15Fifteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue15 | |
DiscountVendorClaimGroupNameName of the claim group for the discount. Points to a discount claim group record. | String (60)GUPDiscountVendorClaimGroupName | No | Yes | GUPDiscountVendorClaimGroup.Name | RetailPeriodicDiscount.DiscountVendorClaimGroupName |
MaxCriteriaTypeWhether the maximum is an amount or a quantity. | Enum
| No | Yes | RetailPeriodicDiscount.MaxCriteriaType | |
MaxQtyOrAmountMaximum quantity or amount for the discount. The criteria type says which. | RealGUPDiscountMaxQtyAmount | No | Yes | RetailPeriodicDiscount.MaxQtyOrAmount | |
ShouldUseIntervalShows whether an interval is used in the calculation. | EnumGUPShouldUseIntervalCalculation
| No | Yes | RetailPeriodicDiscount.ShouldUseInterval | |
UnitOfMeasureUnit used for the maximum quantity. Points to a unit record. | Int64UnitOfMeasureRecId | No | No (private) | UnitOfMeasure.RecId | RetailPeriodicDiscount.MaxUnitOfMeasure |
UnitOfMeasureSymbolShort symbol that identifies the unit. It is the key of the table. | StringUnitOfMeasureSymbol | No | Yes | UnitOfMeasure.Symbol | |
ClaimableShows whether the discount can be claimed. | EnumGUPDiscountClaimable
| No | Yes | RetailPeriodicDiscount.Claimable | |
DiscountClaimPostingOffsetName of the claim posting profile used for the offset. Points to a claim posting profile record. | String (60)Name | No | Yes | GUPDiscountVendorClaimPostingProfile.Name | RetailPeriodicDiscount.DiscountClaimPostingOffset |
DlvModeIdMode of delivery that the discount relates to. Points to the delivery mode. | StringDlvModeId | No | Yes | DlvMode.Code | RetailShippingThresholdDiscounts.DlvModeId |
IncludeGenericCurrencyFlag that allows the attribute-based price components to be used with a generic currency. | EnumNoYesId
| No | Yes | RetailPeriodicDiscount.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.
CurrencyCode→Currency.CurrencyCode(key of Currency)Many RetailPeriodicDiscount records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
ValidationPeriodId→RetailDiscountValidationPeriod.periodId(key of RetailDiscountValidationPeriod)Many RetailPeriodicDiscount records → zero or one RetailDiscountValidationPeriod record
RetailDiscountValidationPeriod details: see RetailDiscountValidationPeriodEntity
DiscountCodeId→RetailDiscountCode.RecId(key of RetailDiscountCode)Zero or one RetailPeriodicDiscount record → zero or one RetailDiscountCode record
RetailDiscountCode details: see RetailShippingThresholdDiscountsEntity, GUPDiscountInquiryResultEntity
PricingPriorityNumber→RetailPricingPriorityTable.PriorityNumber(key of RetailPricingPriorityTable)Many RetailPeriodicDiscount records → zero or one RetailPricingPriorityTable record
RetailPricingPriorityTable details: see RetailPricingPriorityEntity
HeaderPricingRule→GUPPricingRule.RecId(key of GUPPricingRule)Zero or one RetailPeriodicDiscount record → exactly one GUPPricingRule record
GUPPricingRule details: see GUPDiscountInquiryResultEntity, GUPDiscountLineInquiryResultEntity, GUPPriceAdjustmentInquiryResultEntity
PriceComponentCodeName→GUPPriceComponentCode.Name(key of GUPPriceComponentCode)Many RetailPeriodicDiscount records → exactly one GUPPriceComponentCode record
GUPPriceComponentCode details: see GUPPriceComponentCodeEntity, GUPPriceComponentCodeCombinationEntity, GUPPriceComponentCodeSetupEntity
DiscountVendorClaimGroupName→GUPDiscountVendorClaimGroup.Name(key of GUPDiscountVendorClaimGroup)Many RetailPeriodicDiscount records → exactly one GUPDiscountVendorClaimGroup record
GUPDiscountVendorClaimGroup details: see GUPDiscountVendorClaimGroupEntity
UnitOfMeasure→UnitOfMeasure.RecId(key of UnitOfMeasure)Many RetailPeriodicDiscount records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
DiscountClaimPostingOffset→GUPDiscountVendorClaimPostingProfile.Name(key of GUPDiscountVendorClaimPostingProfile)Relation also requires GUPDiscountVendorClaimPostingProfile.ProfileType = GUPDiscountClaimPostingProfileType::ClaimOffset.
Zero or one RetailPeriodicDiscount record → zero or one GUPDiscountVendorClaimPostingProfile record
GUPDiscountVendorClaimPostingProfile details: see GUPDiscountVendorClaimPostingProfileEntity
DlvModeId→DlvMode.Code(key of DlvMode)Many RetailShippingThresholdDiscounts records → zero or one DlvMode record
DlvMode details: see DlvDeliveryModeEntity, RetailDeliveryModeAddressLineEntity, RetailDeliveryModeChannelLineEntity
Need help with GUPRetailDiscountV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.