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· rootEcoResCategory· InnerJoin toRetailCategoryPriceRule· read-onlyEcoResCategoryHierarchy· InnerJoin toEcoResCategory· read-onlyPCClass· Derived toEcoResCategory
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AccountCodeWhether the rule applies to one account, a group or all: table, group or all. | EnumPriceDiscAccountCode
| No | No (private) | RetailCategoryPriceRule.AccountCode | |
AccountRelationCustomer account, or group, that the rule applies to. | String (20)PriceDiscAccountRelation | No | No (private) | CustTable.AccountNum | RetailCategoryPriceRule.AccountRelation |
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 | |
CustomerAccountCustomer account that the rule applies to. | String (20)CustAccount | No | Yes | computed | |
CustomerPriceGroupCodeCustomer price group that the rule applies to. | StringCustPriceGroup | No | Yes | computed |
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.
AccountRelation→CustTable.AccountNum(key of CustTable)Relation also requires AccountCode = TableGroupAll::Table.
Many RetailCategoryPriceRule records → zero or one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
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
Need help with RetailCategoryPriceRuleEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.