Data entity
GUPDiscountLineInquiryResultEntity
Read-only results of a discount line setup inquiry. Each record is identified by the offer ID and the line number. It shows the line type, unit, calculation type, percentage off, prices and amounts. It also shows quantity limits, line groups and the free item group. Condition columns show the price attribute values for the line.
- Entity name
GUPDiscountLineInquiryResultEntity- Public entity name
DiscountLineInquiryResult- OData collection
DiscountLineInquiryResults- Category
Not set- Module
Other (no module in the metadata)- Read-only
Yes- Data management enabled
No- Configuration key
Retail- Keys
OfferId, LineNum- Staging table
None
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/DiscountLineInquiryResults- Dataverse virtual table
mserp_gupdiscountlineinquiryresultentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Not enabled for import and export projects.
Data sources
GUPRetailPeriodicDiscountLineInquiryResult· rootUnitOfMeasure· OuterJoin toGUPRetailPeriodicDiscountLineInquiryResult· read-onlyGUPRetailDiscountThresholdTiersInquiryResult· OuterJoin toGUPRetailPeriodicDiscountLineInquiryResult· read-onlyGUPPricingRule· OuterJoin toGUPRetailPeriodicDiscountLineInquiryResult· read-onlyInventDim· OuterJoin toGUPRetailPeriodicDiscountLineInquiryResult· read-onlyGUPRetailPeriodicDiscountInquiryResult· InnerJoin toGUPRetailPeriodicDiscountLineInquiryResult
Fields (61)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
DescriptionFree text that describes the line. | String (-1)RetailMemo | No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.Description | |
DiscountPercentOrValuePercentage off for the line. | RealRetailDiscountPercentValue | No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.DiscountPercentOrValue | |
IsDiscountCodeRequiredYes/No flag showing whether a coupon code is needed. | EnumRetailDiscountCodeRequired
| No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.IsDiscountCodeRequired | |
LineNumNumber of the line. | RealLineNum | No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.LineNum | |
NameName of the line. | String (60)Name | No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.Name | |
OfferIdID of the discount offer, linking the line to the periodic discount header. | String (20)RetailOfferIdEx3 | Yes | Yes | GUPRetailPeriodicDiscountLineInquiryResult.OfferId | |
StatusShows whether the line is Disabled or Enabled. | Enum
| No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.Status | |
UnitOfMeasureSystem record ID of the unit, which points to a unit record. | Int64UnitOfMeasureRecId | No | No (private) | UnitOfMeasure.RecId | GUPRetailPeriodicDiscountLineInquiryResult.UnitOfMeasure |
UnitOfMeasureSymbolShort symbol that identifies the unit. It is the key of the table. | StringUnitOfMeasureSymbol | No | Yes | UnitOfMeasure.Symbol | |
LineTypeShows whether the line is Included or Excluded. | EnumRetailDiscountLineType
| No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.LineType | |
IsDiscountApplyingLineYes/No flag showing whether this line is one the discount applies to. | EnumRetailIsDiscountApplyingLine
| No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.IsDiscountApplyingLine | |
UnitAppliesToAllYes/No flag. The label is empty, so it is inferred that it relates to the unit applying to all.low confidence | EnumNoYesId
| No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.UnitAppliesToAll | |
LinePricingRuleSystem record ID of the pricing rule for the line, which points to a price rule. | Int64GUPRefRecId | No | No (private) | GUPPricingRule.RecId | GUPRetailPeriodicDiscountLineInquiryResult.LinePricingRule |
LinePricingGroupCodeShows whether the line applies to a Group or to All. | EnumGUPPricingAttributeGroupCodeLine
| No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.LinePricingGroupCode | |
IsMandatoryYes/No flag showing whether the line is mandatory. | EnumNoYesId
| No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.IsMandatory | |
LeastAmountSmallest line amount required. | RealPriceDiscAmount | No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.LeastAmount | |
LeastQuantitySmallest line quantity required. | RealGUPLeastQuantity | No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.LeastQuantity | |
OfferDiscountAmountCash discount amount for the line. | RealDiscAmount | No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.DiscAmount | |
OfferDiscountMethodCalculation type for the line: Percentage off, Amount off or Unit price. | EnumRetailDiscountOfferLineDiscountMethod
| No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.DiscountMethod | |
OfferDiscountPercentagePercentage off for the line. | RealRetailPriceDiscPct | No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.DiscPct | |
OfferPriceUnit price offered on the line. | RealRetailOfferPrice | No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.OfferPrice | |
OfferPriceInclTaxDiscounted sale price including tax. | RealRetailOfferPriceInclTax | No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.OfferPriceInclTax | |
OfferDiscountMethodN1Discount method, which can also be a discount price including tax. | EnumRetailOfferLineDiscountMethodN1
| No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.DiscountMethodN1 | |
OfferPriceN1Unit price for the alternative discount method. | RealRetailOfferPrice | No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.OfferPriceN1 | |
OfferPriceInclTaxN1Discounted sale price including tax for the alternative discount method. | RealRetailOfferPriceInclTax | No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.OfferPriceInclTaxN1 | |
MixAndMatchDiscountTypeCalculation type: Deal price, Percentage off or Amount off. | EnumRetailDealPriceDiscountPct
| No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.DiscountType | |
MixAndMatchLineGroupName of the line group, used in mix and match discounts. | StringRetailMixAndMatchLineGroup | No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.LineGroup | |
MixAndMatchNumberOfItemsNeededNumber of products needed for the line. | IntegerRetailNumberOfItemsNeeded | No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.NumberOfItemsNeeded | |
ThresholdLineDiscountMethodDiscount method for a threshold discount line: Percentage off, Amount off or Unit price. | EnumRetailDiscountThresholdLineDiscountMethod
| No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.ThresholdLineDiscountMethod | |
ThresholdTierAmountAmount at which the tier applies. | RealAmount | No | Yes | GUPRetailDiscountThresholdTiersInquiryResult.AmountThreshold | |
QuantityLimitQuantity limit for a threshold line. | RealRetailDiscountThresholdLineQuantityLimit | No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.QuantityLimit | |
FreeItemGroupNumber of the free item group. | IntegerGUPFreeItemGroupId | No | Yes | GUPRetailPeriodicDiscountLineInquiryResult.FreeItemGroup | |
OwnerInventory owner; used for Russia. | String (40)InventOwnerId | No | Yes | InventOwner_RU.InventOwnerId | InventDim.InventOwnerId_RU |
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 |
LocationLocation inside the warehouse. | StringWMSLocationId | No | Yes | WMSLocation.wMSLocationId | InventDim.wMSLocationId |
InventoryStatusInventory status of the stock. | StringWHSInventStatusId | No | Yes | WHSInventStatus.InventStatusId | InventDim.InventStatusId |
LicensePlateLicense plate ID of the stock unit. | String (25)WHSLicensePlateId | No | Yes | WHSLicensePlate.LicensePlateId | InventDim.LicensePlateId |
BatchNumberBatch number of the inventory. | String (20)InventBatchId | No | Yes | InventDim.inventBatchId | |
SerialNumberSerial number of the inventory. | String (20)InventSerialId | No | Yes | InventDim.inventSerialId | |
PriceAttributeGroupNamePrice attribute group linked to the rule. | String (60)GUPPricingAttributeGroupName | No | Yes | GUPPricingAttributeGroup.Name | GUPPricingRule.PriceAttributeGroupName |
CombinationLineStructureText that describes the price attribute details of the discount line. | String (-1)GUPPricingAttributeDetailsMemo | No | Yes | virtual | |
Line1Condition value in the first line column of the discount. | String (1000)GUPAttributeValue | No | Yes | virtual | |
Line2Condition value in the second line column of the discount. | String (1000)GUPAttributeValue | No | Yes | virtual | |
Line3Condition value in the third line column of the discount. | String (1000)GUPAttributeValue | No | Yes | virtual | |
Line4Condition value in the fourth line column of the discount. | String (1000)GUPAttributeValue | No | Yes | virtual | |
Line5Condition value in the fifth line column of the discount. | String (1000)GUPAttributeValue | No | Yes | virtual | |
Line6Condition value in the sixth line column of the discount. | String (1000)GUPAttributeValue | No | Yes | virtual | |
Line7Condition value in the seventh line column of the discount. | String (1000)GUPAttributeValue | No | Yes | virtual | |
Line8Condition value in the eighth line column of the discount. | String (1000)GUPAttributeValue | No | Yes | virtual | |
Line9Condition value in the ninth line column of the discount. | String (1000)GUPAttributeValue | No | Yes | virtual | |
Line10Condition value in the tenth line column of the discount. | String (1000)GUPAttributeValue | No | Yes | virtual | |
Line11Condition value in the eleventh line column of the discount. | String (1000)GUPAttributeValue | No | Yes | virtual | |
Line12Condition value in the twelfth line column of the discount. | String (1000)GUPAttributeValue | No | Yes | virtual | |
Line13Condition value in the thirteenth line column of the discount. | String (1000)GUPAttributeValue | No | Yes | virtual | |
Line14Condition value in the fourteenth line column of the discount. | String (1000)GUPAttributeValue | No | Yes | virtual | |
Line15Condition value in the fifteenth line column of the discount. | String (1000)GUPAttributeValue | No | Yes | virtual |
Foreign keys (13)
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.
UnitOfMeasure→UnitOfMeasure.RecId(key of UnitOfMeasure)Many GUPRetailPeriodicDiscountLineInquiryResult records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
LinePricingRule→GUPPricingRule.RecId(key of GUPPricingRule)Zero or one GUPRetailPeriodicDiscountLineInquiryResult record → exactly one GUPPricingRule record
GUPPricingRule details: see GUPDiscountInquiryResultEntity, GUPPriceAdjustmentInquiryResultEntity, GUPPriceAdjustmentLineInquiryResultEntity
Owner→InventOwner_RU.InventOwnerId(key of InventOwner_RU)Many InventDim records → zero or one InventOwner_RU record
InventOwner_RU details: see ConsignmentInventoryOwnerEntity
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
Location→WMSLocation.wMSLocationId(key of WMSLocation)Join on all of:
Location=WMSLocation.wMSLocationId,Warehouse=WMSLocation.inventLocationIdMany InventDim records → zero or one WMSLocation record
WMSLocation details: see WMSWarehouseLocationEntity, WHSWarehouseSlottingTemplateDetailsV3Entity, WHSWarehouseLocationAdvancedWarehouseManagementProcessEnablementRequestEntity
InventoryStatus→WHSInventStatus.InventStatusId(key of WHSInventStatus)Many InventDim records → zero or one WHSInventStatus record
WHSInventStatus details: see WHSInventoryStatusEntity, WHSInventStatusCDREntity
LicensePlate→WHSLicensePlate.LicensePlateId(key of WHSLicensePlate)Many InventDim records → zero or one WHSLicensePlate record
WHSLicensePlate details: see WHSLicensePlateEntity
PriceAttributeGroupName→GUPPricingAttributeGroup.Name(key of GUPPricingAttributeGroup)Zero or one GUPPricingRule record → exactly one GUPPricingAttributeGroup record
GUPPricingAttributeGroup details: see GUPPricingAttributeGroupEntity, GUPCustomerPricingAttributeGroupEntity, GUPProductPricingAttributeGroupEntity
Need help with GUPDiscountLineInquiryResultEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.