Data entity

GUPRetailDiscountLineEntity

Holds the lines of periodic discounts for pricing management. Each line has a line number, a line group, a discount method and values such as percentage off, amount off or unit price. It also covers lines for mix and match, quantity, threshold and free item discounts. Price attribute values are included as Line1 to Line15, with inventory dimensions. The key is the offer ID plus the line number.

Entity name
GUPRetailDiscountLineEntity
Public entity name
DiscountAndMarginComponentPriceAdjustmentLine
OData collection
DiscountAndMarginComponentPriceAdjustmentLines
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
GUPRetailDiscountLineStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/DiscountAndMarginComponentPriceAdjustmentLines
Dataverse virtual table
mserp_gupretaildiscountlineentity. 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
  • GUPPricingRuleConditionView · OuterJoin to RetailPeriodicDiscountLine
  • RetailDiscountLineMixAndMatch · Derived to RetailPeriodicDiscountLine
  • RetailDiscountLineMultibuy · Derived to RetailPeriodicDiscountLine
  • RetailDiscountLineOffer · Derived to RetailPeriodicDiscountLine
  • RetailDiscountLineThresholdApplying · Derived to RetailPeriodicDiscountLine
  • GUPFreeItemDiscountLine · Derived to RetailPeriodicDiscountLine

Fields (62)

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
PriceAttributeGroupNameName of the price attribute group used by the discount line.String (60)
GUPPricingAttributeGroupName
NoYesvirtual
PriceAttributeGroupTypeWhether the line applies to a group or to all.Enum
GUPPricingAttributeGroupCodeLine
GUPGroupAll
  • Group 0
  • All 1
NoYesRetailPeriodicDiscountLine.LinePricingGroupCode
CombinationLineStructureText that describes the price attribute details of the line.String (-1)
GUPPricingAttributeDetailsMemo
NoYescomputed in view
Line1Value of the first price attribute on the line.String (1000)
GUPAttributeValue
NoYescomputed in view
Line2Value of the second price attribute on the line.String (1000)
GUPAttributeValue
NoYescomputed in view
Line3Value of the third price attribute on the line.String (1000)
GUPAttributeValue
NoYescomputed in view
Line4Value of the fourth price attribute on the line.String (1000)
GUPAttributeValue
NoYescomputed in view
Line5Value of the fifth price attribute on the line.String (1000)
GUPAttributeValue
NoYescomputed in view
Line6Value of the sixth price attribute on the line.String (1000)
GUPAttributeValue
NoYescomputed in view
Line7Value of the seventh price attribute on the line.String (1000)
GUPAttributeValue
NoYescomputed in view
Line8Value of the eighth price attribute on the line.String (1000)
GUPAttributeValue
NoYescomputed in view
Line9Value of the ninth price attribute on the line.String (1000)
GUPAttributeValue
NoYescomputed in view
Line10Value of the tenth price attribute on the line.String (1000)
GUPAttributeValue
NoYescomputed in view
Line11Value of the eleventh price attribute on the line.String (1000)
GUPAttributeValue
NoYescomputed in view
Line12Value of the twelfth price attribute on the line.String (1000)
GUPAttributeValue
NoYescomputed in view
Line13Value of the thirteenth price attribute on the line.String (1000)
GUPAttributeValue
NoYescomputed in view
Line14Value of the fourteenth price attribute on the line.String (1000)
GUPAttributeValue
NoYescomputed in view
Line15Value of the fifteenth price attribute on the line.String (1000)
GUPAttributeValue
NoYescomputed in view
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
UnitOfMeasureSymbolSymbol of the unit of measure used by the line.String
UnitOfMeasureSymbol
NoYesvirtual
ConfigurationProduct configuration name that the line applies to.String (50)
EcoResItemConfigurationName
NoYesvirtual
SizeProduct size name that the line applies to.String
EcoResItemSizeName
NoYesvirtual
ColorProduct colour name that the line applies to.String
EcoResItemColorName
NoYesvirtual
StyleProduct style name that the line applies to.String
EcoResItemStyleName
NoYesvirtual
SiteInventory site ID that the line applies to.String
InventSiteId
NoYesvirtual
WarehouseWarehouse ID that the line applies to.String
InventLocationId
NoYesvirtual
LocationWarehouse location ID that the line applies to.String
WMSLocationId
NoYesvirtual
InventoryStatusInventory status ID that the line applies to.String
WHSInventStatusId
NoYesvirtual
LicensePlateLicense plate ID that the line applies to.String (25)
WHSLicensePlateId
NoYesvirtual
BatchNumberBatch number that the line applies to.String (20)
InventBatchId
NoYesvirtual
SerialNumberSerial number that the line applies to.String (20)
InventSerialId
NoYesvirtual
OwnerInventory owner ID that the line applies to.String (40)
InventOwnerId
NoYesvirtual
UnitOfMeasureUnit for the line. Points to a unit record.Int64
UnitOfMeasureRecId
NoNo (private)UnitOfMeasure.RecIdRetailPeriodicDiscountLine.UnitOfMeasure
InventDimIdInventory dimension combination of the line. Points to an inventory dimension record.String (20)
InventDimId
NoNo (private)InventDim.inventDimIdRetailPeriodicDiscountLine.InventDimId
LineExclusionExclusion setting for the attributes on the line.String (400)
GUPAttributeExclusion
NoYesvirtual
LineExclusionTypeType of price rule exclusion for the line. It is a list of fixed values.Enum
GUPPricingRuleExclusionType
  • Product 0
  • ProductVariant 1
  • Customer 2
NoYesvirtual

Foreign keys (5)

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

Email sales@drdynamics.co.uk