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 · root
  • UnitOfMeasure · OuterJoin to GUPRetailPeriodicDiscountLineInquiryResult · read-only
  • GUPRetailDiscountThresholdTiersInquiryResult · OuterJoin to GUPRetailPeriodicDiscountLineInquiryResult · read-only
  • GUPPricingRule · OuterJoin to GUPRetailPeriodicDiscountLineInquiryResult · read-only
  • InventDim · OuterJoin to GUPRetailPeriodicDiscountLineInquiryResult · read-only
  • GUPRetailPeriodicDiscountInquiryResult · InnerJoin to GUPRetailPeriodicDiscountLineInquiryResult

Fields (61)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
DescriptionFree text that describes the line.String (-1)
RetailMemo
NoYesGUPRetailPeriodicDiscountLineInquiryResult.Description
DiscountPercentOrValuePercentage off for the line.Real
RetailDiscountPercentValue
NoYesGUPRetailPeriodicDiscountLineInquiryResult.DiscountPercentOrValue
IsDiscountCodeRequiredYes/No flag showing whether a coupon code is needed.Enum
RetailDiscountCodeRequired
NoYes

Platform enum: values not in the metadata extract.

NoYesGUPRetailPeriodicDiscountLineInquiryResult.IsDiscountCodeRequired
LineNumNumber of the line.Real
LineNum
NoYesGUPRetailPeriodicDiscountLineInquiryResult.LineNum
NameName of the line.String (60)
Name
NoYesGUPRetailPeriodicDiscountLineInquiryResult.Name
OfferIdID of the discount offer, linking the line to the periodic discount header.String (20)
RetailOfferIdEx3
YesYesGUPRetailPeriodicDiscountLineInquiryResult.OfferId
StatusShows whether the line is Disabled or Enabled.Enum
RetailDisabledEnabled
  • Disabled 0
  • Enabled 1
NoYesGUPRetailPeriodicDiscountLineInquiryResult.Status
UnitOfMeasureSystem record ID of the unit, which points to a unit record.Int64
UnitOfMeasureRecId
NoNo (private)UnitOfMeasure.RecIdGUPRetailPeriodicDiscountLineInquiryResult.UnitOfMeasure
UnitOfMeasureSymbolShort symbol that identifies the unit. It is the key of the table.String
UnitOfMeasureSymbol
NoYesUnitOfMeasure.Symbol
LineTypeShows whether the line is Included or Excluded.Enum
RetailDiscountLineType
RetailDiscountLineIncludeExcludeTypeBase
  • Include 0
  • Exclude 1
NoYesGUPRetailPeriodicDiscountLineInquiryResult.LineType
IsDiscountApplyingLineYes/No flag showing whether this line is one the discount applies to.Enum
RetailIsDiscountApplyingLine
NoYes

Platform enum: values not in the metadata extract.

NoYesGUPRetailPeriodicDiscountLineInquiryResult.IsDiscountApplyingLine
UnitAppliesToAllYes/No flag. The label is empty, so it is inferred that it relates to the unit applying to all.low confidenceEnum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesGUPRetailPeriodicDiscountLineInquiryResult.UnitAppliesToAll
LinePricingRuleSystem record ID of the pricing rule for the line, which points to a price rule.Int64
GUPRefRecId
NoNo (private)GUPPricingRule.RecIdGUPRetailPeriodicDiscountLineInquiryResult.LinePricingRule
LinePricingGroupCodeShows whether the line applies to a Group or to All.Enum
GUPPricingAttributeGroupCodeLine
GUPGroupAll
  • Group 0
  • All 1
NoYesGUPRetailPeriodicDiscountLineInquiryResult.LinePricingGroupCode
IsMandatoryYes/No flag showing whether the line is mandatory.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesGUPRetailPeriodicDiscountLineInquiryResult.IsMandatory
LeastAmountSmallest line amount required.Real
PriceDiscAmount
NoYesGUPRetailPeriodicDiscountLineInquiryResult.LeastAmount
LeastQuantitySmallest line quantity required.Real
GUPLeastQuantity
NoYesGUPRetailPeriodicDiscountLineInquiryResult.LeastQuantity
OfferDiscountAmountCash discount amount for the line.Real
DiscAmount
NoYesGUPRetailPeriodicDiscountLineInquiryResult.DiscAmount
OfferDiscountMethodCalculation type for the line: Percentage off, Amount off or Unit price.Enum
RetailDiscountOfferLineDiscountMethod
RetailDiscountOfferLineDiscMethodBase
  • PercentOff 0
  • AmountOff 1
  • Price 2
NoYesGUPRetailPeriodicDiscountLineInquiryResult.DiscountMethod
OfferDiscountPercentagePercentage off for the line.Real
RetailPriceDiscPct
NoYesGUPRetailPeriodicDiscountLineInquiryResult.DiscPct
OfferPriceUnit price offered on the line.Real
RetailOfferPrice
NoYesGUPRetailPeriodicDiscountLineInquiryResult.OfferPrice
OfferPriceInclTaxDiscounted sale price including tax.Real
RetailOfferPriceInclTax
NoYesGUPRetailPeriodicDiscountLineInquiryResult.OfferPriceInclTax
OfferDiscountMethodN1Discount method, which can also be a discount price including tax.Enum
RetailOfferLineDiscountMethodN1
RetailOfferLineDiscountMethodBaseN1
  • PercentOff 0
  • AmountOff 1
  • Price 2
  • PriceInclTax 3
NoYesGUPRetailPeriodicDiscountLineInquiryResult.DiscountMethodN1
OfferPriceN1Unit price for the alternative discount method.Real
RetailOfferPrice
NoYesGUPRetailPeriodicDiscountLineInquiryResult.OfferPriceN1
OfferPriceInclTaxN1Discounted sale price including tax for the alternative discount method.Real
RetailOfferPriceInclTax
NoYesGUPRetailPeriodicDiscountLineInquiryResult.OfferPriceInclTaxN1
MixAndMatchDiscountTypeCalculation type: Deal price, Percentage off or Amount off.Enum
RetailDealPriceDiscountPct
RetailDealPriceDiscountPctBase
  • DealPrice 0
  • DiscountPct 1
  • DiscountAmount 2
NoYesGUPRetailPeriodicDiscountLineInquiryResult.DiscountType
MixAndMatchLineGroupName of the line group, used in mix and match discounts.String
RetailMixAndMatchLineGroup
NoYesGUPRetailPeriodicDiscountLineInquiryResult.LineGroup
MixAndMatchNumberOfItemsNeededNumber of products needed for the line.Integer
RetailNumberOfItemsNeeded
NoYesGUPRetailPeriodicDiscountLineInquiryResult.NumberOfItemsNeeded
ThresholdLineDiscountMethodDiscount method for a threshold discount line: Percentage off, Amount off or Unit price.Enum
RetailDiscountThresholdLineDiscountMethod
RetailDiscountThresholdLineDiscountMethodBase
  • DiscountPercent 0
  • DiscountAmount 1
  • DealPrice 2
NoYesGUPRetailPeriodicDiscountLineInquiryResult.ThresholdLineDiscountMethod
ThresholdTierAmountAmount at which the tier applies.Real
Amount
NoYesGUPRetailDiscountThresholdTiersInquiryResult.AmountThreshold
QuantityLimitQuantity limit for a threshold line.Real
RetailDiscountThresholdLineQuantityLimit
NoYesGUPRetailPeriodicDiscountLineInquiryResult.QuantityLimit
FreeItemGroupNumber of the free item group.Integer
GUPFreeItemGroupId
NoYesGUPRetailPeriodicDiscountLineInquiryResult.FreeItemGroup
OwnerInventory owner; used for Russia.String (40)
InventOwnerId
NoYesInventOwner_RU.InventOwnerIdInventDim.InventOwnerId_RU
ConfigurationConfiguration of the product.String (50)
EcoResItemConfigurationName
NoYesEcoResConfiguration.NameInventDim.configId
SizeSize of the product.String
EcoResItemSizeName
NoYesEcoResSize.NameInventDim.InventSizeId
ColorColour of the product.String
EcoResItemColorName
NoYesEcoResColor.NameInventDim.InventColorId
StyleStyle of the product.String
EcoResItemStyleName
NoYesEcoResStyle.NameInventDim.InventStyleId
SiteSite of the inventory.String
InventSiteId
NoYesInventSite.SiteIdInventDim.InventSiteId
WarehouseWarehouse of the inventory.String
InventLocationId
NoYesInventLocation.InventLocationIdInventDim.InventLocationId
LocationLocation inside the warehouse.String
WMSLocationId
NoYesWMSLocation.wMSLocationIdInventDim.wMSLocationId
InventoryStatusInventory status of the stock.String
WHSInventStatusId
NoYesWHSInventStatus.InventStatusIdInventDim.InventStatusId
LicensePlateLicense plate ID of the stock unit.String (25)
WHSLicensePlateId
NoYesWHSLicensePlate.LicensePlateIdInventDim.LicensePlateId
BatchNumberBatch number of the inventory.String (20)
InventBatchId
NoYesInventDim.inventBatchId
SerialNumberSerial number of the inventory.String (20)
InventSerialId
NoYesInventDim.inventSerialId
PriceAttributeGroupNamePrice attribute group linked to the rule.String (60)
GUPPricingAttributeGroupName
NoYesGUPPricingAttributeGroup.NameGUPPricingRule.PriceAttributeGroupName
CombinationLineStructureText that describes the price attribute details of the discount line.String (-1)
GUPPricingAttributeDetailsMemo
NoYesvirtual
Line1Condition value in the first line column of the discount.String (1000)
GUPAttributeValue
NoYesvirtual
Line2Condition value in the second line column of the discount.String (1000)
GUPAttributeValue
NoYesvirtual
Line3Condition value in the third line column of the discount.String (1000)
GUPAttributeValue
NoYesvirtual
Line4Condition value in the fourth line column of the discount.String (1000)
GUPAttributeValue
NoYesvirtual
Line5Condition value in the fifth line column of the discount.String (1000)
GUPAttributeValue
NoYesvirtual
Line6Condition value in the sixth line column of the discount.String (1000)
GUPAttributeValue
NoYesvirtual
Line7Condition value in the seventh line column of the discount.String (1000)
GUPAttributeValue
NoYesvirtual
Line8Condition value in the eighth line column of the discount.String (1000)
GUPAttributeValue
NoYesvirtual
Line9Condition value in the ninth line column of the discount.String (1000)
GUPAttributeValue
NoYesvirtual
Line10Condition value in the tenth line column of the discount.String (1000)
GUPAttributeValue
NoYesvirtual
Line11Condition value in the eleventh line column of the discount.String (1000)
GUPAttributeValue
NoYesvirtual
Line12Condition value in the twelfth line column of the discount.String (1000)
GUPAttributeValue
NoYesvirtual
Line13Condition value in the thirteenth line column of the discount.String (1000)
GUPAttributeValue
NoYesvirtual
Line14Condition value in the fourteenth line column of the discount.String (1000)
GUPAttributeValue
NoYesvirtual
Line15Condition value in the fifteenth line column of the discount.String (1000)
GUPAttributeValue
NoYesvirtual

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.

Need help with GUPDiscountLineInquiryResultEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk