Data entity
GUPCategoryPriceRuleEntity
Holds attribute-based price rules for retail categories. Each row is one rule line, keyed by line number. It has the amount or percent, price basis, unit, vendor account and rounding version. It also has flags such as allow unit conversion and prevent discount, and header fields for price attribute groups.
- Entity name
GUPCategoryPriceRuleEntity- Public entity name
GUPCategoryPriceRule- OData collection
GUPCategoryPriceRules- Category
Not set- Module
Merchandising- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
LineNumber- Staging table
GUPCategoryPriceRuleStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/GUPCategoryPriceRules- Dataverse virtual table
mserp_gupcategorypriceruleentity. 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
RetailCategoryPriceRule· rootEcoResCategory· InnerJoin toRetailCategoryPriceRule· read-onlyEcoResCategoryHierarchy· InnerJoin toEcoResCategory· read-onlyPCClass· Derived toEcoResCategoryGUPPriceComponentCodePriceAttributeGroupCombination· OuterJoin toRetailCategoryPriceRule· read-onlyGUPPricingRuleConditionViewHeader(tableGUPPricingRuleConditionLookup) · OuterJoin toRetailCategoryPriceRuleGUPPricingRuleConditionViewLine(tableGUPPricingRuleConditionLookup) · OuterJoin toRetailCategoryPriceRule
Fields (54)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
IsGUPCategoryPriceRuleYes/No flag that marks the record as a category price rule of the pricing rule feature.low confidence | EnumNoYesId
| No | Yes | RetailCategoryPriceRule.IsGUPCategoryPriceRule | |
AmountPercentAmount or percentage used by the rule. | RealRetailAmountPercent | No | Yes | RetailCategoryPriceRule.AmountPercent | |
PriceBasisPrice that the rule starts from, such as base price, current price or purchase price. | Enum
| No | Yes | RetailCategoryPriceRule.PriceBasis | |
PriceSetupTypeType of price rule: markup, margin or fixed amount. | Enum
| No | Yes | RetailCategoryPriceRule.PriceSetupType | |
SmartRoundingGroupRounding version used for the resulting price. | StringPriceDiscSmartRoundingGroupId | No | Yes | PriceDiscSmartRoundingGroup.GroupId | RetailCategoryPriceRule.SmartRoundingGroup |
UnitIdUnit of measure the rule applies to. | StringUnitOfMeasureSymbol | No | Yes | UnitOfMeasure.Symbol | RetailCategoryPriceRule.UnitId |
VendorAccountVendor account the rule applies to. | String (20)VendAccount | No | Yes | VendTable.AccountNum | RetailCategoryPriceRule.VendAccount |
LineNumberLine number that orders the rule lines. | RealLineNum | No | Yes | RetailCategoryPriceRule.LineNum | |
CategoryNameName of the category. | String (254)EcoResCategoryName | Yes | Yes | EcoResCategory.Name | |
CategoryHierarchyNameName of the category hierarchy. | String (128)EcoResCategoryHierarchyName | Yes | Yes | EcoResCategoryHierarchy.Name | |
PriceGroupPrice group linked to the rule. | StringPriceGroupId | No | Yes | RetailCategoryPriceRule.PriceGroup | |
UnitAppliesToAllYes/No flag that allows unit conversion, so the rule can apply across units. | EnumGUPUnitAppliesToAll
| No | Yes | RetailCategoryPriceRule.UnitAppliesToAll | |
PriceApplyAdjustmentYes/No flag that allows the price adjustment to be applied. | EnumGUPPriceDiscPriceApplyAdjustment
| No | Yes | RetailCategoryPriceRule.PriceApplyAdjustment | |
PricePreventDiscountYes/No flag that stops further discount on the price. | EnumGUPPriceDiscPricePreventDiscount
| No | Yes | RetailCategoryPriceRule.PricePreventDiscount | |
ExactlyMatchedYes/No flag showing whether the rule is an exact match.low confidence | EnumNoYesId
| No | Yes | RetailCategoryPriceRule.ExactlyMatched | |
PricingRuleHeaderHeader of the related price rule, stored as a record ID. | Int64GUPRefRecId | No | No (private) | GUPPricingRule.RecId | RetailCategoryPriceRule.PricingRuleHeader |
PricingRuleLineLine of the related price rule, stored as a record ID. | Int64GUPRefRecId | No | No (private) | GUPPricingRule.RecId | RetailCategoryPriceRule.PricingRuleLine |
PriceComponentCombinationName of the combination. | String (180)GUPPricingAttributeGroupCombinationName | No | Yes | GUPPriceComponentCodePriceAttributeGroupCombination.Name | |
PriceAttributeGroupNameHeaderPrice attribute group the conditions belong to. | String (60)GUPPricingAttributeGroupName | No | Yes | GUPPricingRuleConditionLookup.PriceAttributeGroupName | |
HeaderExclusionTypeKind of item excluded by the rule: product, product variant or customer. | Enum
| No | Yes | GUPPricingRuleConditionLookup.ExclusionType | |
HeaderExclusionText listing the items excluded from the rule. | String (500)GUPAttributeExclusion | No | Yes | GUPPricingRuleConditionLookup.Exclusion | |
Header1First condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue1 | |
Header2Second condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue2 | |
Header3Third condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue3 | |
Header4Fourth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue4 | |
Header5Fifth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue5 | |
Header6Sixth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue6 | |
Header7Seventh condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue7 | |
Header8Eighth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue8 | |
Header9Ninth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue9 | |
Header10Tenth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue10 | |
Header11Eleventh condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue11 | |
Header12Twelfth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue12 | |
Header13Thirteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue13 | |
Header14Fourteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue14 | |
Header15Fifteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue15 | |
PriceAttributeGroupNameLinePrice attribute group the conditions belong to. | String (60)GUPPricingAttributeGroupName | No | Yes | GUPPricingRuleConditionLookup.PriceAttributeGroupName | |
LineExclusionText listing the items excluded from the rule. | String (500)GUPAttributeExclusion | No | Yes | GUPPricingRuleConditionLookup.Exclusion | |
LineExclusionTypeKind of item excluded by the rule: product, product variant or customer. | Enum
| No | Yes | GUPPricingRuleConditionLookup.ExclusionType | |
Line1First condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue1 | |
Line2Second condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue2 | |
Line3Third condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue3 | |
Line4Fourth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue4 | |
Line5Fifth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue5 | |
Line6Sixth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue6 | |
Line7Seventh condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue7 | |
Line8Eighth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue8 | |
Line9Ninth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue9 | |
Line10Tenth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue10 | |
Line11Eleventh condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue11 | |
Line12Twelfth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue12 | |
Line13Thirteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue13 | |
Line14Fourteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue14 | |
Line15Fifteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue15 |
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.
SmartRoundingGroup→PriceDiscSmartRoundingGroup.GroupId(key of PriceDiscSmartRoundingGroup)Many RetailCategoryPriceRule records → zero or one PriceDiscSmartRoundingGroup record
Not exposed by a public entity.
UnitId→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many RetailCategoryPriceRule records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
VendorAccount→VendTable.AccountNum(key of VendTable)Many RetailCategoryPriceRule records → zero or one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
PricingRuleHeader→GUPPricingRule.RecId(key of GUPPricingRule)Zero or one RetailCategoryPriceRule record → exactly one GUPPricingRule record
GUPPricingRule details: see GUPDiscountInquiryResultEntity, GUPDiscountLineInquiryResultEntity, GUPPriceAdjustmentInquiryResultEntity
PricingRuleLine→GUPPricingRule.RecId(key of GUPPricingRule)Zero or one RetailCategoryPriceRule record → exactly one GUPPricingRule record
GUPPricingRule details: see GUPDiscountInquiryResultEntity, GUPDiscountLineInquiryResultEntity, GUPPriceAdjustmentInquiryResultEntity
Need help with GUPCategoryPriceRuleEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.