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· rootRetailDiscountThresholdTiers· OuterJoin toRetailPeriodicDiscountLineRetailPeriodicDiscount· InnerJoin toRetailPeriodicDiscountLine· read-onlyRetailPeriodicDiscount_RetailDiscountThreshold(tableRetailDiscountThreshold) · Derived toRetailPeriodicDiscountRetailPeriodicDiscount_RetailShippingThresholdDiscounts(tableRetailShippingThresholdDiscounts) · Derived toRetailPeriodicDiscountRetailPeriodicDiscount_RetailDiscountMixAndMatch(tableRetailDiscountMixAndMatch) · Derived toRetailPeriodicDiscountRetailPeriodicDiscount_RetailDiscountMultibuy(tableRetailDiscountMultibuy) · Derived toRetailPeriodicDiscountRetailPeriodicDiscount_RetailDiscountOffer(tableRetailDiscountOffer) · Derived toRetailPeriodicDiscountRetailPeriodicDiscount_GUPFreeItemDiscount(tableGUPFreeItemDiscount) · Derived toRetailPeriodicDiscountGUPPricingRuleConditionLookup· OuterJoin toRetailPeriodicDiscountLineInventDim· OuterJoin toRetailPeriodicDiscountLineUnitOfMeasure· OuterJoin toRetailPeriodicDiscountLineRetailDiscountLineMixAndMatch· Derived toRetailPeriodicDiscountLineRetailDiscountLineMultibuy· Derived toRetailPeriodicDiscountLineRetailDiscountLineOffer· Derived toRetailPeriodicDiscountLineRetailDiscountLineThresholdApplying· Derived toRetailPeriodicDiscountLineGUPFreeItemDiscountLine· Derived toRetailPeriodicDiscountLine
Fields (54)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
DiscountPercentOrValuePercentage taken off the price on this line. | RealRetailDiscountPercentValue | No | Yes | RetailPeriodicDiscountLine.DiscountPercentOrValue | |
LineNumNumber of the line within the discount. | RealLineNum | No | Yes | RetailPeriodicDiscountLine.LineNum | |
OfferIdIdentifier of the discount. | String (20)RetailOfferIdEx3 | Yes | Yes | RetailPeriodicDiscount.OfferId | |
MixAndMatchDiscountTypeCalculation type of the discount: deal price, percentage off or amount off. | EnumRetailDealPriceDiscountPct
| No | Yes | RetailDiscountLineMixAndMatch.discountType | |
MixAndMatchLineGroupMix and match line group that the line belongs to. | StringRetailMixAndMatchLineGroup | No | Yes | RetailMixAndMatchLineGroupSetup.mixAndMatchLineGroup | RetailDiscountLineMixAndMatch.lineGroup |
MixAndMatchNumberOfItemsNeededNumber of products that must be bought for the line to count. | IntegerRetailNumberOfItemsNeeded | No | Yes | RetailDiscountLineMixAndMatch.numberOfItemsNeeded | |
OfferDiscountAmountAmount taken off the price. Currency not stated in the metadata. | RealDiscAmount | No | Yes | RetailDiscountLineOffer.discAmount | |
OfferDiscountMethodCalculation type of the offer: percentage off, amount off or unit price. | EnumRetailDiscountOfferLineDiscountMethod
| No | Yes | RetailDiscountLineOffer.discountMethod | |
OfferDiscountPercentagePercentage taken off the price. | RealRetailPriceDiscPct | No | Yes | RetailDiscountLineOffer.discPct | |
OfferPriceUnit price set by the offer. Currency not stated in the metadata. | RealRetailOfferPrice | No | Yes | RetailDiscountLineOffer.offerPrice | |
NameName of the line. | String (60)Name | No | Yes | RetailPeriodicDiscountLine.Name | |
DescriptionFree-text description of the line. | String (-1)RetailMemo | No | Yes | RetailPeriodicDiscountLine.Description | |
LineTypeWhether the line includes or excludes the products it covers. | EnumRetailDiscountLineType
| No | Yes | RetailPeriodicDiscountLine.LineType | |
OfferDiscountMethodN1Discount method, which adds the option of a discount price including tax. | EnumRetailOfferLineDiscountMethodN1
| No | Yes | RetailDiscountLineOffer.discountMethodN1 | |
OfferPriceInclTaxN1Discounted sale price including tax, used with the second discount method field. | RealRetailOfferPriceInclTax | No | Yes | RetailDiscountLineOffer.offerPriceInclTaxN1 | |
OfferPriceN1Unit price set by the offer, used with the second discount method field. | RealRetailOfferPrice | No | Yes | RetailDiscountLineOffer.offerPriceN1 | |
ThresholdApplyingLineDiscountMethodDiscount method for the threshold line: percentage off, amount off or unit price. | EnumRetailDiscountThresholdLineDiscountMethod
| No | Yes | RetailDiscountLineThresholdApplying.ThresholdLineDiscountMethod | |
ThresholdTierAmountAmount at which this tier starts to apply. | RealAmount | No | Yes | RetailDiscountThresholdTiers.AmountThreshold | |
ThresholdTierRecIdThreshold discount tier, stored as its record ID. | Int64 | No | No (private) | RetailDiscountThresholdTiers.RecId | RetailDiscountLineThresholdApplying.Tier |
IsDiscountApplyingLineShows whether this is a line that the discount is applied to. | EnumRetailIsDiscountApplyingLine
| No | Yes | RetailPeriodicDiscountLine.IsDiscountApplyingLine | |
ThresholdLineQuantityLimitLimit on the quantity that the threshold discount applies to. | RealRetailDiscountThresholdLineQuantityLimit | No | Yes | RetailDiscountLineThresholdApplying.QuantityLimit | |
FreeItemGroupNumber of the free item group for the discount line. | IntegerGUPFreeItemGroupId | No | Yes | GUPFreeItemDiscountLine.FreeItemGroup | |
UnitAppliesToAllShows whether the line applies to all units. | EnumNoYesId
| No | Yes | RetailPeriodicDiscountLine.UnitAppliesToAll | |
PriceAttributeGroupTypeWhether the line applies to a group or to all. | EnumGUPPricingAttributeGroupCodeLine
| No | Yes | RetailPeriodicDiscountLine.LinePricingGroupCode | |
LineExclusionText listing the items excluded from the rule. | String (500)GUPAttributeExclusion | No | Yes | GUPPricingRuleConditionLookup.Exclusion | |
LineExclusionTypeKind of item excluded by the rule: product, product variant or customer. | Enum
| No | Yes | GUPPricingRuleConditionLookup.ExclusionType | |
PriceAttributeGroupNamePrice attribute group the conditions belong to. | String (60)GUPPricingAttributeGroupName | No | Yes | GUPPricingRuleConditionLookup.PriceAttributeGroupName | |
Line1First condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue1 | |
Line2Second condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue2 | |
Line3Third condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue3 | |
Line4Fourth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue4 | |
Line5Fifth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue5 | |
Line6Sixth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue6 | |
Line7Seventh condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue7 | |
Line8Eighth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue8 | |
Line9Ninth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue9 | |
Line10Tenth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue10 | |
Line11Eleventh condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue11 | |
Line12Twelfth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue12 | |
Line13Thirteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue13 | |
Line14Fourteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue14 | |
Line15Fifteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue15 | |
LinePricingRuleSystem record ID of the price rule used on the line. | Int64GUPRefRecId | No | No (private) | GUPPricingRule.RecId | RetailPeriodicDiscountLine.LinePricingRule |
IsMandatoryShows whether the line is mandatory. | EnumNoYesId
| No | Yes | RetailPeriodicDiscountLine.IsMandatory | |
LeastAmountSmallest line amount required, as the label says. | RealPriceDiscAmount | No | Yes | RetailPeriodicDiscountLine.LeastAmount | |
LeastQuantitySmallest line quantity required. | RealGUPLeastQuantity | No | Yes | RetailPeriodicDiscountLine.LeastQuantity | |
UnitOfMeasureSymbolShort symbol that identifies the unit. It is the key of the table. | StringUnitOfMeasureSymbol | No | Yes | UnitOfMeasure.Symbol | |
ConfigurationConfiguration of the product. | String (50)EcoResItemConfigurationName | No | Yes | EcoResConfiguration.Name | InventDim.configId |
SizeSize of the product. | StringEcoResItemSizeName | No | Yes | EcoResSize.Name | InventDim.InventSizeId |
ColorColour of the product. | StringEcoResItemColorName | No | Yes | EcoResColor.Name | InventDim.InventColorId |
StyleStyle of the product. | StringEcoResItemStyleName | No | Yes | EcoResStyle.Name | InventDim.InventStyleId |
SiteSite of the inventory. | StringInventSiteId | No | Yes | InventSite.SiteId | InventDim.InventSiteId |
WarehouseWarehouse of the inventory. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | InventDim.InventLocationId |
UnitOfMeasureUnit for the line. Points to a unit record. | Int64UnitOfMeasureRecId | No | No (private) | UnitOfMeasure.RecId | RetailPeriodicDiscountLine.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.
MixAndMatchLineGroup→RetailMixAndMatchLineGroupSetup.mixAndMatchLineGroup(key of RetailMixAndMatchLineGroupSetup)Many RetailDiscountLineMixAndMatch records → zero or one RetailMixAndMatchLineGroupSetup record
RetailMixAndMatchLineGroupSetup details: see RetailMixAndMatchLineGroupSetupEntity
ThresholdTierRecId→RetailDiscountThresholdTiers.RecId(key of RetailDiscountThresholdTiers)Many RetailDiscountLineThresholdApplying records → exactly one RetailDiscountThresholdTiers record
RetailDiscountThresholdTiers details: see RetailDiscountThresholdTierEntity, GUPRetailDiscountLineEntity, RetailDiscountLineEntity
LinePricingRule→GUPPricingRule.RecId(key of GUPPricingRule)Zero or one RetailPeriodicDiscountLine record → exactly one GUPPricingRule record
GUPPricingRule details: see GUPDiscountInquiryResultEntity, GUPDiscountLineInquiryResultEntity, GUPPriceAdjustmentInquiryResultEntity
Configuration→EcoResConfiguration.Name(key of EcoResConfiguration)Many InventDim records → zero or one EcoResConfiguration record
EcoResConfiguration details: see EcoResProductMasterConfigurationEntity, EcoResProductMasterConfigurationTranslationEntity, EcoResProductNumberIdentifiedProductVariantEntity
Size→EcoResSize.Name(key of EcoResSize)Many InventDim records → zero or one EcoResSize record
EcoResSize details: see EcoResProductSizeV2Entity, EcoResProductMasterSizeEntity, EcoResProductMasterSizeTranslationEntity
Color→EcoResColor.Name(key of EcoResColor)Many InventDim records → zero or one EcoResColor record
EcoResColor details: see EcoResProductColorV2Entity, EcoResProductColorEntity, EcoResProductColorGroupLineEntity
Style→EcoResStyle.Name(key of EcoResStyle)Many InventDim records → zero or one EcoResStyle record
EcoResStyle details: see EcoResProductStyleV2Entity, EcoResProductMasterStyleEntity, EcoResProductMasterStyleTranslationEntity
Site→InventSite.SiteId(key of InventSite)Many InventDim records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
Warehouse→InventLocation.InventLocationId(key of InventLocation)Many InventDim records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
UnitOfMeasure→UnitOfMeasure.RecId(key of UnitOfMeasure)Many RetailPeriodicDiscountLine records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
Need help with GUPRetailDiscountLineV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.