Data entity
RetailDiscountLineV2Entity
Holds the lines of retail discounts. Each line is keyed by the discount offer ID and line number. It brings together applicability rules and mix and match, multibuy, offer and threshold line details. It also links to products, categories, variants, units, delivery modes, sites, warehouses and catalogues.
- Entity name
RetailDiscountLineV2Entity- Public entity name
RetailDiscountLineV2- OData collection
RetailDiscountLinesV2- 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
RetailDiscountLineV2Staging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/RetailDiscountLinesV2- Dataverse virtual table
mserp_retaildiscountlinev2entity. 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
RetailDiscountApplicabilityRule· rootRetailPeriodicDiscountLine· InnerJoin toRetailDiscountApplicabilityRuleRetailDiscountThresholdTiers· OuterJoin toRetailPeriodicDiscountLine· read-onlyRetailDiscountLineMixAndMatch· Derived toRetailPeriodicDiscountLineRetailDiscountLineMultibuy· Derived toRetailPeriodicDiscountLineRetailDiscountLineOffer· Derived toRetailPeriodicDiscountLineRetailDiscountLineThresholdApplying· Derived toRetailPeriodicDiscountLineEcoResCategory· OuterJoin toRetailDiscountApplicabilityRule· read-onlyEcoResCategoryHierarchy· OuterJoin toEcoResCategory· read-onlyEcoResCategory_PCClass(tablePCClass) · Derived toEcoResCategoryEcoResProduct· OuterJoin toRetailDiscountApplicabilityRule· read-onlyEcoResProduct_EcoResDistinctProduct(tableEcoResDistinctProduct) · Derived toEcoResProductEcoResProduct_EcoResDistinctProductVariant(tableEcoResDistinctProductVariant) · Derived toEcoResProduct_EcoResDistinctProductEcoResProduct_EcoResProductMaster(tableEcoResProductMaster) · Derived toEcoResProductEcoResDistinctProductVariant· OuterJoin toRetailDiscountApplicabilityRule· read-onlyUnitOfMeasure· OuterJoin toRetailDiscountApplicabilityRule· read-onlyDlvMode· OuterJoin toRetailDiscountApplicabilityRule· read-onlyInventSite· OuterJoin toRetailDiscountApplicabilityRule· read-onlyInventLocation· OuterJoin toRetailDiscountApplicabilityRule· read-onlyCatalog· OuterJoin toRetailDiscountApplicabilityRule· read-onlyEcoResStyle· OuterJoin toRetailDiscountApplicabilityRule· read-onlyEcoResSize· OuterJoin toRetailDiscountApplicabilityRule· read-onlyEcoResConfiguration· OuterJoin toRetailDiscountApplicabilityRule· read-onlyEcoResColor· OuterJoin toRetailDiscountApplicabilityRule· read-only
Fields (44)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
OfferIdDiscount that the line belongs to. Points to the periodic discount. | String (20)RetailOfferIdEx3 | Yes | Yes | RetailPeriodicDiscount.OfferId | RetailPeriodicDiscountLine.OfferId |
LineNumNumber of the line within the discount. | RealLineNum | Yes | Yes | RetailPeriodicDiscountLine.LineNum | |
PropValue0Criteria value in position 0 of the rule.low confidence | String (100)Criterias | No | Yes | RetailDiscountApplicabilityRule.PropValue0 | |
PropValue1Criteria value in position 1 of the rule.low confidence | String (100)Criterias | No | Yes | RetailDiscountApplicabilityRule.PropValue1 | |
PropValue2Criteria value in position 2 of the rule.low confidence | String (100)Criterias | No | Yes | RetailDiscountApplicabilityRule.PropValue2 | |
PropValue3Criteria value in position 3 of the rule.low confidence | String (100)Criterias | No | Yes | RetailDiscountApplicabilityRule.PropValue3 | |
PropValue4Criteria value in position 4 of the rule.low confidence | String (100)Criterias | No | Yes | RetailDiscountApplicabilityRule.PropValue4 | |
PropValue5Criteria value in position 5 of the rule.low confidence | String (100)Criterias | No | Yes | RetailDiscountApplicabilityRule.PropValue5 | |
PropValue6Criteria value in position 6 of the rule.low confidence | String (100)Criterias | No | Yes | RetailDiscountApplicabilityRule.PropValue6 | |
PropValue7Criteria value in position 7 of the rule.low confidence | String (100)Criterias | No | Yes | RetailDiscountApplicabilityRule.PropValue7 | |
PropValue8Criteria value in position 8 of the rule.low confidence | String (100)Criterias | No | Yes | RetailDiscountApplicabilityRule.PropValue8 | |
PropValue9Criteria value in position 9 of the rule.low confidence | String (100)Criterias | No | Yes | RetailDiscountApplicabilityRule.PropValue9 | |
CategoryHierarchyNameName of the category hierarchy. | String (128)EcoResCategoryHierarchyName | No | Yes | EcoResCategoryHierarchy.Name | |
CategoryNameName of the category. | String (254)EcoResCategoryName | No | Yes | EcoResCategory.Name | |
DisplayProductNumberProduct number shown to users. It identifies the product. | String (70)EcoResProductDisplayProductNumber | No | Yes | EcoResProduct.DisplayProductNumber | |
ProductVariant_DisplayProductNumberProduct number shown to users. It identifies the product. | String (70)EcoResProductDisplayProductNumber | No | Yes | EcoResProduct.DisplayProductNumber | |
UnitOfMeasure_SymbolShort symbol that identifies the unit. It is the key of the table. | StringUnitOfMeasureSymbol | No | Yes | UnitOfMeasure.Symbol | |
DlvMode_CodeCode that identifies the mode of delivery. | StringDlvModeId | No | Yes | DlvMode.Code | |
InventSiteIdThe unique ID of the site. | StringInventSiteId | No | Yes | InventSite.SiteId | |
InventLocationIdID of the warehouse. It is the key of the table. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | |
CatalogIdCatalog number that identifies the catalog. | StringRetailCatalogId | No | Yes | Catalog.CatalogId | |
EcoResStyleNameName of the style. | StringEcoResStyleName | No | Yes | EcoResStyle.Name | |
EcoResSizeNameName of the size. | StringEcoResSizeName | No | Yes | EcoResSize.Name | |
EcoResConfigurationNameThe name of the configuration. | String (50)EcoResConfigurationName | No | Yes | EcoResConfiguration.Name | |
EcoResColorNameThe name of the colour. | StringEcoResColorName | No | Yes | EcoResColor.Name | |
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 | |
DiscountPercentOrValuePercentage taken off the price on this line. | RealRetailDiscountPercentValue | No | Yes | RetailPeriodicDiscountLine.DiscountPercentOrValue |
Foreign keys (3)
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
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, GUPRetailDiscountLineV2Entity
Need help with RetailDiscountLineV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.