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· 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 toRetailPeriodicDiscountGUPPricingRuleConditionView· OuterJoin toRetailPeriodicDiscountLineRetailDiscountLineMixAndMatch· Derived toRetailPeriodicDiscountLineRetailDiscountLineMultibuy· Derived toRetailPeriodicDiscountLineRetailDiscountLineOffer· Derived toRetailPeriodicDiscountLineRetailDiscountLineThresholdApplying· Derived toRetailPeriodicDiscountLineGUPFreeItemDiscountLine· Derived toRetailPeriodicDiscountLine
Fields (62)
| 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 | |
PriceAttributeGroupNameName of the price attribute group used by the discount line. | String (60)GUPPricingAttributeGroupName | No | Yes | virtual | |
PriceAttributeGroupTypeWhether the line applies to a group or to all. | EnumGUPPricingAttributeGroupCodeLine
| No | Yes | RetailPeriodicDiscountLine.LinePricingGroupCode | |
CombinationLineStructureText that describes the price attribute details of the line. | String (-1)GUPPricingAttributeDetailsMemo | No | Yes | computed in view | |
Line1Value of the first price attribute on the line. | String (1000)GUPAttributeValue | No | Yes | computed in view | |
Line2Value of the second price attribute on the line. | String (1000)GUPAttributeValue | No | Yes | computed in view | |
Line3Value of the third price attribute on the line. | String (1000)GUPAttributeValue | No | Yes | computed in view | |
Line4Value of the fourth price attribute on the line. | String (1000)GUPAttributeValue | No | Yes | computed in view | |
Line5Value of the fifth price attribute on the line. | String (1000)GUPAttributeValue | No | Yes | computed in view | |
Line6Value of the sixth price attribute on the line. | String (1000)GUPAttributeValue | No | Yes | computed in view | |
Line7Value of the seventh price attribute on the line. | String (1000)GUPAttributeValue | No | Yes | computed in view | |
Line8Value of the eighth price attribute on the line. | String (1000)GUPAttributeValue | No | Yes | computed in view | |
Line9Value of the ninth price attribute on the line. | String (1000)GUPAttributeValue | No | Yes | computed in view | |
Line10Value of the tenth price attribute on the line. | String (1000)GUPAttributeValue | No | Yes | computed in view | |
Line11Value of the eleventh price attribute on the line. | String (1000)GUPAttributeValue | No | Yes | computed in view | |
Line12Value of the twelfth price attribute on the line. | String (1000)GUPAttributeValue | No | Yes | computed in view | |
Line13Value of the thirteenth price attribute on the line. | String (1000)GUPAttributeValue | No | Yes | computed in view | |
Line14Value of the fourteenth price attribute on the line. | String (1000)GUPAttributeValue | No | Yes | computed in view | |
Line15Value of the fifteenth price attribute on the line. | String (1000)GUPAttributeValue | No | Yes | computed in view | |
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 | |
UnitOfMeasureSymbolSymbol of the unit of measure used by the line. | StringUnitOfMeasureSymbol | No | Yes | virtual | |
ConfigurationProduct configuration name that the line applies to. | String (50)EcoResItemConfigurationName | No | Yes | virtual | |
SizeProduct size name that the line applies to. | StringEcoResItemSizeName | No | Yes | virtual | |
ColorProduct colour name that the line applies to. | StringEcoResItemColorName | No | Yes | virtual | |
StyleProduct style name that the line applies to. | StringEcoResItemStyleName | No | Yes | virtual | |
SiteInventory site ID that the line applies to. | StringInventSiteId | No | Yes | virtual | |
WarehouseWarehouse ID that the line applies to. | StringInventLocationId | No | Yes | virtual | |
LocationWarehouse location ID that the line applies to. | StringWMSLocationId | No | Yes | virtual | |
InventoryStatusInventory status ID that the line applies to. | StringWHSInventStatusId | No | Yes | virtual | |
LicensePlateLicense plate ID that the line applies to. | String (25)WHSLicensePlateId | No | Yes | virtual | |
BatchNumberBatch number that the line applies to. | String (20)InventBatchId | No | Yes | virtual | |
SerialNumberSerial number that the line applies to. | String (20)InventSerialId | No | Yes | virtual | |
OwnerInventory owner ID that the line applies to. | String (40)InventOwnerId | No | Yes | virtual | |
UnitOfMeasureUnit for the line. Points to a unit record. | Int64UnitOfMeasureRecId | No | No (private) | UnitOfMeasure.RecId | RetailPeriodicDiscountLine.UnitOfMeasure |
InventDimIdInventory dimension combination of the line. Points to an inventory dimension record. | String (20)InventDimId | No | No (private) | InventDim.inventDimId | RetailPeriodicDiscountLine.InventDimId |
LineExclusionExclusion setting for the attributes on the line. | String (400)GUPAttributeExclusion | No | Yes | virtual | |
LineExclusionTypeType of price rule exclusion for the line. It is a list of fixed values. | Enum
| No | Yes | virtual |
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.
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, GUPRetailDiscountLineV2Entity, RetailDiscountLineEntity
LinePricingRule→GUPPricingRule.RecId(key of GUPPricingRule)Zero or one RetailPeriodicDiscountLine record → exactly one GUPPricingRule record
GUPPricingRule details: see GUPDiscountInquiryResultEntity, GUPDiscountLineInquiryResultEntity, GUPPriceAdjustmentInquiryResultEntity
UnitOfMeasure→UnitOfMeasure.RecId(key of UnitOfMeasure)Many RetailPeriodicDiscountLine records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
InventDimId→InventDim.inventDimId(key of InventDim)Many RetailPeriodicDiscountLine records → zero or one InventDim record
InventDim details: see ProdProductionPickingListJournalEntryEntity, ProdReportAsFinishedProductionJournalEntryEntity, WHSExternalInventoryAdjustmentEntity
Need help with GUPRetailDiscountLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.