Table
RetailDiscountApplicabilityRule
Applicability rules for commerce discounts
Holds the criteria that decide where a commerce periodic discount line applies. Each record links to a discount line and can name a product, category, variant, unit, delivery mode, site, warehouse, catalog or product dimension values. It also stores generic criteria values and a hash code.
- Table name
RetailDiscountApplicabilityRule- Module
Commerce- 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 (30)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CatalogRefRecIdCatalog that the rule applies to. | Int64CatalogRefRecId | No | Catalog.RecId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DlvModeCodeMode of delivery that the rule applies to. | StringDlvModeId | No | DlvMode.Code | None |
EcoResCategoryRefRecIdProduct category that the rule applies to. | Int64EcoResCategoryId | No | EcoResCategory.RecId | None |
EcoResColorNameColour name that the rule applies to. | StringEcoResColorName | No | EcoResColor.Name | None |
EcoResConfigurationNameConfiguration name that the rule applies to. | String (50)EcoResConfigurationName | No | EcoResConfiguration.Name | None |
EcoResDistinctProductVariantRefRecIdProduct variant that the rule applies to. | Int64EcoResDistinctProductVariantRecId | No | EcoResDistinctProductVariant.RecId | None |
EcoResProductRefRecIdProduct that the rule applies to. | Int64EcoResProductRecId | No | EcoResProduct.RecId | None |
EcoResSizeNameSize name that the rule applies to. | StringEcoResSizeName | No | EcoResSize.Name | None |
EcoResStyleNameStyle name that the rule applies to. | StringEcoResStyleName | No | EcoResStyle.Name | None |
InventLocationIdWarehouse that the rule applies to. | StringInventLocationId | No | InventLocation.InventLocationId | None |
InventSiteIdSite that the rule applies to. | StringInventSiteId | No | InventSite.SiteId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PropValue0Criteria value in position 0 of the rule.low confidence | String (100)Criterias | No | RetailDiscountLineV2Entity | |
PropValue1Criteria value in position 1 of the rule.low confidence | String (100)Criterias | No | RetailDiscountLineV2Entity | |
PropValue2Criteria value in position 2 of the rule.low confidence | String (100)Criterias | No | RetailDiscountLineV2Entity | |
PropValue3Criteria value in position 3 of the rule.low confidence | String (100)Criterias | No | RetailDiscountLineV2Entity | |
PropValue4Criteria value in position 4 of the rule.low confidence | String (100)Criterias | No | RetailDiscountLineV2Entity | |
PropValue5Criteria value in position 5 of the rule.low confidence | String (100)Criterias | No | RetailDiscountLineV2Entity | |
PropValue6Criteria value in position 6 of the rule.low confidence | String (100)Criterias | No | RetailDiscountLineV2Entity | |
PropValue7Criteria value in position 7 of the rule.low confidence | String (100)Criterias | No | RetailDiscountLineV2Entity | |
PropValue8Criteria value in position 8 of the rule.low confidence | String (100)Criterias | No | RetailDiscountLineV2Entity | |
PropValue9Criteria value in position 9 of the rule.low confidence | String (100)Criterias | No | RetailDiscountLineV2Entity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RetailPeriodicDiscountLinePoints to the periodic discount line that the rule belongs to. | Int64RefRecId | Yes | RetailPeriodicDiscountLine.RecId | None |
SHA3HashHexHash code of the rule, stored as hexadecimal text. | String (96)RetailApplicabiiltyRuleSHA3HashHex | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
UnitOfMeasureSymbolUnit of measure symbol that the rule applies to. | StringUnitOfMeasureSymbol | No | UnitOfMeasure.Symbol | None |
Indexes (2)
SHA3HashIndexSHA3HashHex,RetailPeriodicDiscountLineNot unique.
RetailPeriodicDiscountLineUnique.
Relations (13)
Each relation joins RetailDiscountApplicabilityRule to another table on the fields shown.
EcoResCategory→EcoResCategoryJoin on
EcoResCategoryRefRecId = EcoResCategory.RecIdZero or one RetailDiscountApplicabilityRule record → exactly one EcoResCategory record
EcoResProduct→EcoResProductJoin on
EcoResProductRefRecId = EcoResProduct.RecIdZero or one RetailDiscountApplicabilityRule record → exactly one EcoResProduct record
EcoResDistinctProductVariant→EcoResDistinctProductVariantJoin on
EcoResDistinctProductVariantRefRecId = EcoResDistinctProductVariant.RecIdZero or one RetailDiscountApplicabilityRule record → exactly one EcoResDistinctProductVariant record
UnitOfMeasure→UnitOfMeasureJoin on
UnitOfMeasureSymbol = UnitOfMeasure.SymbolZero or one RetailDiscountApplicabilityRule record → exactly one UnitOfMeasure record
DlvMode→DlvModeJoin on
DlvModeCode = DlvMode.CodeZero or one RetailDiscountApplicabilityRule record → exactly one DlvMode record
InventSite→InventSiteJoin on
InventSiteId = InventSite.SiteIdZero or one RetailDiscountApplicabilityRule record → exactly one InventSite record
InventLocation→InventLocationJoin on
InventLocationId = InventLocation.InventLocationIdZero or one RetailDiscountApplicabilityRule record → exactly one InventLocation record
Catalog→CatalogJoin on
CatalogRefRecId = Catalog.RecIdZero or one RetailDiscountApplicabilityRule record → exactly one Catalog record
EcoResStyle→EcoResStyleJoin on
EcoResStyleName = EcoResStyle.NameZero or one RetailDiscountApplicabilityRule record → exactly one EcoResStyle record
EcoResSize→EcoResSizeJoin on
EcoResSizeName = EcoResSize.NameZero or one RetailDiscountApplicabilityRule record → exactly one EcoResSize record
EcoResConfiguration→EcoResConfigurationJoin on
EcoResConfigurationName = EcoResConfiguration.NameZero or one RetailDiscountApplicabilityRule record → exactly one EcoResConfiguration record
EcoResColor→EcoResColorJoin on
EcoResColorName = EcoResColor.NameZero or one RetailDiscountApplicabilityRule record → exactly one EcoResColor record
RetailPeriodicDiscountLine→RetailPeriodicDiscountLineJoin on
RetailPeriodicDiscountLine = RetailPeriodicDiscountLine.RecIdExactly one RetailDiscountApplicabilityRule record → exactly one RetailPeriodicDiscountLine record
Get this data out
Tables are not exposed directly. These public entities read from RetailDiscountApplicabilityRule; use one of them in Power BI, Power Platform or a data management project.
RetailDiscountLineV2Entity· 10 fields from this table
Need help with RetailDiscountApplicabilityRule in a report, an integration or a migration? Talk to Dr Dynamics.