Data entity
RetailDiscountLineEntity
Holds the lines of a periodic discount, identified by the offer ID and line number. Each line can point to a product, category or variant and carries values for offer, mix and match, multibuy or threshold discounts. It also links to units of measure and threshold tiers.
- Entity name
RetailDiscountLineEntity- Public entity name
RetailDiscountLine- OData collection
RetailDiscountLines- Category
Not set- Module
Merchandising- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
OfferId, LineNum- Staging table
RetailDiscountLineStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/RetailDiscountLines- Dataverse virtual table
mserp_retaildiscountlineentity. 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· rootUnitOfMeasure· OuterJoin toRetailPeriodicDiscountLine· read-onlyRetailDiscountThresholdTiers· OuterJoin toRetailPeriodicDiscountLine· read-onlyRetailDiscountLineMixAndMatch· Derived toRetailPeriodicDiscountLineRetailDiscountLineMultibuy· Derived toRetailPeriodicDiscountLineRetailDiscountLineOffer· Derived toRetailPeriodicDiscountLineRetailDiscountLineThresholdApplying· Derived toRetailPeriodicDiscountLine
Fields (31)
| 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 | |
OfferIdDiscount that the line belongs to. Points to the periodic discount. | String (20)RetailOfferIdEx3 | Yes | Yes | RetailPeriodicDiscount.OfferId | RetailPeriodicDiscountLine.OfferId |
UnitOfMeasureUnit for the line. Points to a unit record. | Int64UnitOfMeasureRecId | No | Yes | UnitOfMeasure.RecId | RetailPeriodicDiscountLine.UnitOfMeasure |
UnitOfMeasureSymbolShort symbol that identifies the unit. It is the key of the table. | StringUnitOfMeasureSymbol | No | Yes | UnitOfMeasure.Symbol | |
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 | |
ItemIdItem number of the product that the discount line applies to. | String (20)ItemId | No | Yes | virtual | |
ColorColour of the product variant that the line applies to. | StringEcoResColorName | No | Yes | virtual | |
SizeSize of the product variant that the line applies to. | StringEcoResSizeName | No | Yes | virtual | |
StyleStyle of the product variant that the line applies to. | StringEcoResStyleName | No | Yes | virtual | |
ConfigIdConfiguration of the product variant that the line applies to. | String (50)EcoResConfigurationName | No | Yes | virtual | |
CategoryHierarchyNameName of the category hierarchy that the discount line refers to. | String (128)EcoResCategoryHierarchyName | No | Yes | virtual | |
CategoryNameName of the product category that the discount line refers to. | String (254)EcoResCategoryName | No | Yes | virtual | |
RetailGroupMemberLineSystem record ID of the group member line that is linked. | Int64RefRecId | No | Yes | RetailGroupMemberLine.RecId | RetailPeriodicDiscountLine.RetailGroupMemberLine |
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 |
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.
OfferId→RetailPeriodicDiscount.OfferId(key of RetailPeriodicDiscount)Many RetailPeriodicDiscountLine records → exactly one RetailPeriodicDiscount record
RetailPeriodicDiscount details: see GUPRetailDiscountEntity, GUPRetailDiscountV2Entity, RetailDiscountEntity
UnitOfMeasure→UnitOfMeasure.RecId(key of UnitOfMeasure)Many RetailPeriodicDiscountLine records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
MixAndMatchLineGroup→RetailMixAndMatchLineGroupSetup.mixAndMatchLineGroup(key of RetailMixAndMatchLineGroupSetup)Many RetailDiscountLineMixAndMatch records → zero or one RetailMixAndMatchLineGroupSetup record
RetailMixAndMatchLineGroupSetup details: see RetailMixAndMatchLineGroupSetupEntity
RetailGroupMemberLine→RetailGroupMemberLine.RecId(key of RetailGroupMemberLine)Zero or one RetailPeriodicDiscountLine record → exactly one RetailGroupMemberLine record
RetailGroupMemberLine details: see RetailSpecialCategoryMemberEntity
ThresholdTierRecId→RetailDiscountThresholdTiers.RecId(key of RetailDiscountThresholdTiers)Many RetailDiscountLineThresholdApplying records → exactly one RetailDiscountThresholdTiers record
RetailDiscountThresholdTiers details: see RetailDiscountThresholdTierEntity, GUPRetailDiscountLineEntity, GUPRetailDiscountLineV2Entity
Need help with RetailDiscountLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.