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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CatalogRefRecIdCatalog that the rule applies to.Int64
CatalogRefRecId
NoCatalog.RecIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DlvModeCodeMode of delivery that the rule applies to.String
DlvModeId
NoDlvMode.CodeNone
EcoResCategoryRefRecIdProduct category that the rule applies to.Int64
EcoResCategoryId
NoEcoResCategory.RecIdNone
EcoResColorNameColour name that the rule applies to.String
EcoResColorName
NoEcoResColor.NameNone
EcoResConfigurationNameConfiguration name that the rule applies to.String (50)
EcoResConfigurationName
NoEcoResConfiguration.NameNone
EcoResDistinctProductVariantRefRecIdProduct variant that the rule applies to.Int64
EcoResDistinctProductVariantRecId
NoEcoResDistinctProductVariant.RecIdNone
EcoResProductRefRecIdProduct that the rule applies to.Int64
EcoResProductRecId
NoEcoResProduct.RecIdNone
EcoResSizeNameSize name that the rule applies to.String
EcoResSizeName
NoEcoResSize.NameNone
EcoResStyleNameStyle name that the rule applies to.String
EcoResStyleName
NoEcoResStyle.NameNone
InventLocationIdWarehouse that the rule applies to.String
InventLocationId
NoInventLocation.InventLocationIdNone
InventSiteIdSite that the rule applies to.String
InventSiteId
NoInventSite.SiteIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PropValue0Criteria value in position 0 of the rule.low confidenceString (100)
Criterias
NoRetailDiscountLineV2Entity
PropValue1Criteria value in position 1 of the rule.low confidenceString (100)
Criterias
NoRetailDiscountLineV2Entity
PropValue2Criteria value in position 2 of the rule.low confidenceString (100)
Criterias
NoRetailDiscountLineV2Entity
PropValue3Criteria value in position 3 of the rule.low confidenceString (100)
Criterias
NoRetailDiscountLineV2Entity
PropValue4Criteria value in position 4 of the rule.low confidenceString (100)
Criterias
NoRetailDiscountLineV2Entity
PropValue5Criteria value in position 5 of the rule.low confidenceString (100)
Criterias
NoRetailDiscountLineV2Entity
PropValue6Criteria value in position 6 of the rule.low confidenceString (100)
Criterias
NoRetailDiscountLineV2Entity
PropValue7Criteria value in position 7 of the rule.low confidenceString (100)
Criterias
NoRetailDiscountLineV2Entity
PropValue8Criteria value in position 8 of the rule.low confidenceString (100)
Criterias
NoRetailDiscountLineV2Entity
PropValue9Criteria value in position 9 of the rule.low confidenceString (100)
Criterias
NoRetailDiscountLineV2Entity
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
RetailPeriodicDiscountLinePoints to the periodic discount line that the rule belongs to.Int64
RefRecId
YesRetailPeriodicDiscountLine.RecIdNone
SHA3HashHexHash code of the rule, stored as hexadecimal text.String (96)
RetailApplicabiiltyRuleSHA3HashHex
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
UnitOfMeasureSymbolUnit of measure symbol that the rule applies to.String
UnitOfMeasureSymbol
NoUnitOfMeasure.SymbolNone

Indexes (2)

Relations (13)

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

  • EcoResCategory → EcoResCategory

    Join on EcoResCategoryRefRecId = EcoResCategory.RecId

    Zero or one RetailDiscountApplicabilityRule record → exactly one EcoResCategory record

  • EcoResProduct → EcoResProduct

    Join on EcoResProductRefRecId = EcoResProduct.RecId

    Zero or one RetailDiscountApplicabilityRule record → exactly one EcoResProduct record

  • EcoResDistinctProductVariant → EcoResDistinctProductVariant

    Join on EcoResDistinctProductVariantRefRecId = EcoResDistinctProductVariant.RecId

    Zero or one RetailDiscountApplicabilityRule record → exactly one EcoResDistinctProductVariant record

  • UnitOfMeasure → UnitOfMeasure

    Join on UnitOfMeasureSymbol = UnitOfMeasure.Symbol

    Zero or one RetailDiscountApplicabilityRule record → exactly one UnitOfMeasure record

  • DlvMode → DlvMode

    Join on DlvModeCode = DlvMode.Code

    Zero or one RetailDiscountApplicabilityRule record → exactly one DlvMode record

  • InventSite → InventSite

    Join on InventSiteId = InventSite.SiteId

    Zero or one RetailDiscountApplicabilityRule record → exactly one InventSite record

  • InventLocation → InventLocation

    Join on InventLocationId = InventLocation.InventLocationId

    Zero or one RetailDiscountApplicabilityRule record → exactly one InventLocation record

  • Catalog → Catalog

    Join on CatalogRefRecId = Catalog.RecId

    Zero or one RetailDiscountApplicabilityRule record → exactly one Catalog record

  • EcoResStyle → EcoResStyle

    Join on EcoResStyleName = EcoResStyle.Name

    Zero or one RetailDiscountApplicabilityRule record → exactly one EcoResStyle record

  • EcoResSize → EcoResSize

    Join on EcoResSizeName = EcoResSize.Name

    Zero or one RetailDiscountApplicabilityRule record → exactly one EcoResSize record

  • EcoResConfiguration → EcoResConfiguration

    Join on EcoResConfigurationName = EcoResConfiguration.Name

    Zero or one RetailDiscountApplicabilityRule record → exactly one EcoResConfiguration record

  • EcoResColor → EcoResColor

    Join on EcoResColorName = EcoResColor.Name

    Zero or one RetailDiscountApplicabilityRule record → exactly one EcoResColor record

  • RetailPeriodicDiscountLine → RetailPeriodicDiscountLine

    Join on RetailPeriodicDiscountLine = RetailPeriodicDiscountLine.RecId

    Exactly 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.

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

Email sales@drdynamics.co.uk