Data entity

RetailCategoryPriceRuleEntity

Holds category price rules, keyed by line number. Each rule has a price rule type, price basis, amount or percent, unit, vendor account and rounding version. It links to a product category and its hierarchy. It can also be tied to a customer account or customer price group.

Entity name
RetailCategoryPriceRuleEntity
Public entity name
RetailCategoryPriceRule
OData collection
RetailCategoryPriceRules
Category
Not set
Module
Merchandising
Read-only
No
Data management enabled
Yes
Configuration key
Retail
Keys
LineNumber
Staging table
RetailCategoryPriceRuleStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/RetailCategoryPriceRules
Dataverse virtual table
mserp_retailcategorypriceruleentity. 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 · root
  • EcoResCategory · InnerJoin to RetailCategoryPriceRule · read-only
  • EcoResCategoryHierarchy · InnerJoin to EcoResCategory · read-only
  • PCClass · Derived to EcoResCategory

Fields (13)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
AccountCodeWhether the rule applies to one account, a group or all: table, group or all.Enum
PriceDiscAccountCode
TableGroupAll
  • Table 0
  • GroupId 1
  • All 2
NoNo (private)RetailCategoryPriceRule.AccountCode
AccountRelationCustomer account, or group, that the rule applies to.String (20)
PriceDiscAccountRelation
NoNo (private)CustTable.AccountNumRetailCategoryPriceRule.AccountRelation
AmountPercentAmount or percentage used by the rule.Real
RetailAmountPercent
NoYesRetailCategoryPriceRule.AmountPercent
PriceBasisPrice that the rule starts from, such as base price, current price or purchase price.Enum
RetailPriceBasisType
  • BaseCost 0
  • BasePrice 1
  • CurrentPrice 2
  • PurchasePrice 3
  • InventCost 4
  • OtherPriceGroup 5
  • LastPurchasePrice 6
NoYesRetailCategoryPriceRule.PriceBasis
PriceSetupTypeType of price rule: markup, margin or fixed amount.Enum
RetailCategoryPriceSetupType
  • Markup 0
  • Margin 1
  • FixedAmount 2
NoYesRetailCategoryPriceRule.PriceSetupType
SmartRoundingGroupRounding version used for the resulting price.String
PriceDiscSmartRoundingGroupId
NoYesPriceDiscSmartRoundingGroup.GroupIdRetailCategoryPriceRule.SmartRoundingGroup
UnitIdUnit of measure the rule applies to.String
UnitOfMeasureSymbol
NoYesUnitOfMeasure.SymbolRetailCategoryPriceRule.UnitId
VendorAccountVendor account the rule applies to.String (20)
VendAccount
NoYesVendTable.AccountNumRetailCategoryPriceRule.VendAccount
LineNumberLine number that orders the rule lines.Real
LineNum
NoYesRetailCategoryPriceRule.LineNum
CategoryNameName of the category.String (254)
EcoResCategoryName
YesYesEcoResCategory.Name
CategoryHierarchyNameName of the category hierarchy.String (128)
EcoResCategoryHierarchyName
YesYesEcoResCategoryHierarchy.Name
CustomerAccountCustomer account that the rule applies to.String (20)
CustAccount
NoYescomputed
CustomerPriceGroupCodeCustomer price group that the rule applies to.String
CustPriceGroup
NoYescomputed

Foreign keys (4)

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 RetailCategoryPriceRuleEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk