Table

RetailCategoryPriceRule

Retail category price rule table

Holds price rules set for product categories. It has no defined key. Each rule defines a price basis, a rule type (markup, margin or fixed amount), an amount or percentage, and optional links to a customer, vendor, unit, currency and rounding version. It also carries fields used by pricing rule entities.

Table name
RetailCategoryPriceRule
Module
Commerce merchandising
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (31)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountCodeWhether the rule applies to one account, a group or all: table, group or all.Enum
PriceDiscAccountCode
TableGroupAll (enum)
NoRetailCategoryPriceRuleEntity
AccountRelationCustomer account, or group, that the rule applies to.String (20)
PriceDiscAccountRelation
NoCustTable.AccountNumRetailCategoryPriceRuleEntity
AmountPercentAmount or percentage used by the rule.Real
RetailAmountPercent
NoGUPCategoryPriceRuleEntityRetailCategoryPriceRuleEntity
CategoryProduct category the rule applies to, stored as the category record ID.Int64
EcoResCategoryId
NoEcoResCategory.RecIdNone
CategoryPriceRuleGroupCodeCategory price rule group the rule belongs to.String
RetailCategoryPriceRuleGroupCode
NoRetailCategoryPriceRuleGroup.CodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ExactlyMatchedYes/No flag showing whether the rule is an exact match.low confidenceEnum
NoYesId
NoYes (enum)
NoGUPCategoryPriceRuleEntity
ExchangeRateTypeRecIdExchange rate type used by the rule, stored as a record ID.Int64
ExchangeRateTypeRecId
NoExchangeRateType.RecIdNone
IsGUPCategoryPriceRuleYes/No flag that marks the record as a category price rule of the pricing rule feature.low confidenceEnum
NoYesId
NoYes (enum)
NoGUPCategoryPriceRuleEntity
LineNumLine number that orders the rule lines.Real
LineNum
NoGUPCategoryPriceRuleEntityRetailCategoryPriceRuleEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PriceApplyAdjustmentYes/No flag that allows the price adjustment to be applied.Enum
GUPPriceDiscPriceApplyAdjustment
NoYes (enum)
NoGUPCategoryPriceRuleEntity
PriceBasisPrice that the rule starts from, such as base price, current price or purchase price.Enum
RetailPriceBasisType (enum)
NoGUPCategoryPriceRuleEntityRetailCategoryPriceRuleEntity
PriceBasisCurrencyCodeCurrency code of the price basis.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
PriceBasisInventDimIdInventory dimension number used for the price basis.String (20)
InventDimId
NoInventDim.inventDimIdNone
PriceBasisOtherPriceGroupPrice group used as the price basis.String
PriceGroupId
NoNone
PriceBasisVendAccountVendor account used for the price basis.String (20)
VendAccount
NoVendTable.AccountNumNone
PriceComponentCombinationPrice attribute group combination linked to the rule, stored as a record ID.Int64
GUPPriceComponentCodeCombinationRecId
NoGUPPriceComponentCodePriceAttributeGroupCombination.RecIdNone
PriceGroupPrice group linked to the rule.String
PriceGroupId
NoGUPCategoryPriceRuleEntity
PricePreventDiscountYes/No flag that stops further discount on the price.Enum
GUPPriceDiscPricePreventDiscount
NoYes (enum)
NoGUPCategoryPriceRuleEntity
PriceSetupTypeType of price rule: markup, margin or fixed amount.Enum
RetailCategoryPriceSetupType (enum)
NoGUPCategoryPriceRuleEntityRetailCategoryPriceRuleEntity
PricingRuleHeaderHeader of the related price rule, stored as a record ID.Int64
GUPRefRecId
NoGUPPricingRule.RecIdGUPCategoryPriceRuleEntity
PricingRuleLineLine of the related price rule, stored as a record ID.Int64
GUPRefRecId
NoGUPPricingRule.RecIdGUPCategoryPriceRuleEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
ScopeWhether the rule includes or excludes sub-categories of the category.Enum
RetailPriceCategoryRuleScope (enum)
NoNone
SmartRoundingGroupRounding version used for the resulting price.String
PriceDiscSmartRoundingGroupId
NoPriceDiscSmartRoundingGroup.GroupIdGUPCategoryPriceRuleEntityRetailCategoryPriceRuleEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
UnitAppliesToAllYes/No flag that allows unit conversion, so the rule can apply across units.Enum
GUPUnitAppliesToAll
NoYes (enum)
NoGUPCategoryPriceRuleEntity
UnitIdUnit of measure the rule applies to.String
UnitOfMeasureSymbol
NoUnitOfMeasure.SymbolGUPCategoryPriceRuleEntityRetailCategoryPriceRuleEntity
VendAccountVendor account the rule applies to.String (20)
VendAccount
NoVendTable.AccountNumGUPCategoryPriceRuleEntityRetailCategoryPriceRuleEntity

Indexes (2)

Relations (16)

Each relation joins RetailCategoryPriceRule to another table on the fields shown.

  • CustTable → CustTable

    Join on AccountCode = TableGroupAll::Table, AccountRelation = CustTable.AccountNum

    Many RetailCategoryPriceRule records → zero or one CustTable record

  • EcoResCategory → EcoResCategory

    Join on Category = EcoResCategory.RecId

    Many RetailCategoryPriceRule records → exactly one EcoResCategory record

  • PriceDiscGroup → PriceDiscGroup

    Join on PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust, AccountCode = TableGroupAll::GroupId, AccountRelation = PriceDiscGroup.GroupId

    Many RetailCategoryPriceRule records → zero or one PriceDiscGroup record

  • PriceDiscSmartRoundingGroup → PriceDiscSmartRoundingGroup

    Join on SmartRoundingGroup = PriceDiscSmartRoundingGroup.GroupId

    Many RetailCategoryPriceRule records → zero or one PriceDiscSmartRoundingGroup record

  • UnitOfMeasure → UnitOfMeasure

    Join on UnitId = UnitOfMeasure.Symbol

    Many RetailCategoryPriceRule records → zero or one UnitOfMeasure record

  • VendTable → VendTable

    Join on VendAccount = VendTable.AccountNum

    Many RetailCategoryPriceRule records → zero or one VendTable record

  • Currency → Currency

    Join on PriceBasisCurrencyCode = Currency.CurrencyCode

    Many RetailCategoryPriceRule records → zero or one Currency record

  • ExchangeRateType → ExchangeRateType

    Join on ExchangeRateTypeRecId = ExchangeRateType.RecId

    Many RetailCategoryPriceRule records → zero or one ExchangeRateType record

  • InventDim → InventDim

    Join on PriceBasisInventDimId = InventDim.inventDimId

    Many RetailCategoryPriceRule records → exactly one InventDim record

  • PriceDiscGroupOther → PriceDiscGroup

    Join on PriceDiscGroup.Module = ModuleInventCustVend::Cust, PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceBasisOtherPriceGroup = PriceDiscGroup.GroupId

    Many RetailCategoryPriceRule records → zero or one PriceDiscGroup record

  • RetailCategoryPriceRuleGroupFK → RetailCategoryPriceRuleGroup

    Join on CategoryPriceRuleGroupCode = RetailCategoryPriceRuleGroup.Code

    Many RetailCategoryPriceRule records → zero or one RetailCategoryPriceRuleGroup record

  • VendTablePriceBasis → VendTable

    Join on PriceBasisVendAccount = VendTable.AccountNum

    Many RetailCategoryPriceRule records → zero or one VendTable record

  • GUPPricingRuleHeader → GUPPricingRule

    Join on PricingRuleHeader = GUPPricingRule.RecId

    Zero or one RetailCategoryPriceRule record → exactly one GUPPricingRule record

  • GUPPricingRuleLine → GUPPricingRule

    Join on PricingRuleLine = GUPPricingRule.RecId

    Zero or one RetailCategoryPriceRule record → exactly one GUPPricingRule record

  • GUPPriceComponentCodePriceAttributeGroupCombination → GUPPriceComponentCodePriceAttributeGroupCombination

    Join on PriceComponentCombination = GUPPriceComponentCodePriceAttributeGroupCombination.RecId

    Zero or one RetailCategoryPriceRule record → zero or one GUPPriceComponentCodePriceAttributeGroupCombination record

  • GUPPriceGroup → PriceDiscGroup

    Join on PriceGroup = PriceDiscGroup.GroupId, PriceDiscGroup.PriceGroupAttributeEnable = NoYes::Yes

    Many RetailCategoryPriceRule records → zero or one PriceDiscGroup record

Get this data out

Tables are not exposed directly. These public entities read from RetailCategoryPriceRule; use one of them in Power BI, Power Platform or a data management project.

Need help with RetailCategoryPriceRule in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk