Table

PricingRuleApplicability

Price attribute values

Holds the attribute values that set where a pricing rule applies, with up to 15 criteria values per row. Each row links to a price group and pricing rule link through a table ID and record ID. It also holds a validity period, a status, a hash code, an optional retail channel and a party type.

Table name
PricingRuleApplicability
Module
Cross-module and platform
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (31)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AttributeValue1First criteria value, stored as text.String (100)
Criterias
NoNone
AttributeValue10Tenth criteria value, stored as text.String (100)
Criterias
NoNone
AttributeValue11Eleventh criteria value, stored as text.String (100)
Criterias
NoNone
AttributeValue12Twelfth criteria value, stored as text.String (100)
Criterias
NoNone
AttributeValue13Thirteenth criteria value, stored as text.String (100)
Criterias
NoNone
AttributeValue14Fourteenth criteria value, stored as text.String (100)
Criterias
NoNone
AttributeValue15Fifteenth criteria value, stored as text.String (100)
Criterias
NoNone
AttributeValue2Second criteria value, stored as text.String (100)
Criterias
NoNone
AttributeValue3Third criteria value, stored as text.String (100)
Criterias
NoNone
AttributeValue4Fourth criteria value, stored as text.String (100)
Criterias
NoNone
AttributeValue5Fifth criteria value, stored as text.String (100)
Criterias
NoNone
AttributeValue6Sixth criteria value, stored as text.String (100)
Criterias
NoNone
AttributeValue7Seventh criteria value, stored as text.String (100)
Criterias
NoNone
AttributeValue8Eighth criteria value, stored as text.String (100)
Criterias
NoNone
AttributeValue9Ninth criteria value, stored as text.String (100)
Criterias
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DirPartyTypeType of party, such as person, organisation, legal entity, team or operating unit.Enum
DirPartyType (enum)
NoNone
HashValueHash code built for the row, held as text.String (100)
PricingApplicabilityHashValue
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PriceComponentKind of price component, such as base price, trade agreement, discount or rebate.Enum
PriceComponent (enum)
NoPriceComponentCode.PriceComponentNone
PriceComponentCodeNameName of the price component code, matched together with the price component.String (60)
Name
NoPriceComponentCode.NameNone
PricingRuleRecIdSystem record ID of the linked price group and pricing rule link.Int64
RefRecId
NoNone
PricingRuleTableIdID of the table that the linked pricing rule record belongs to.Integer
RefTableId
NoNone
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
RetailChannelTablePoints to the retail channel record linked to this row.Int64
RefRecId
NoRetailChannelTable.RecIdNone
StatusShows whether the row is disabled or enabled.Enum
RetailDisabledEnabled (enum)
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
ValidFromFirst date on which the row is valid.Date
ValidFromDate
NoNone
ValidToLast date on which the row is valid.Date
ValidToDate
NoNone

Indexes (1)

Relations (6)

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

  • PriceComponentCode → PriceComponentCode

    Join on PriceComponentCodeName = PriceComponentCode.Name, PriceComponent = PriceComponentCode.PriceComponent

    Many PricingRuleApplicability records → zero or one PriceComponentCode record

  • PriceDiscGroup → PriceDiscGroup

    Join on PricingRuleTableId = PriceDiscGroup.TableId, PricingRuleRecId = PriceDiscGroup.RecId, PriceComponent = PriceComponent::PriceGroup

    Many PricingRuleApplicability records → exactly one PriceDiscGroup record

  • RetailPeriodicDiscount → RetailPeriodicDiscount

    Join on PricingRuleTableId = RetailPeriodicDiscount.TableId, PricingRuleRecId = RetailPeriodicDiscount.RecId

    Many PricingRuleApplicability records → exactly one RetailPeriodicDiscount record

  • PriceDiscTable → PriceDiscTable

    Join on PricingRuleTableId = PriceDiscTable.TableId, PricingRuleRecId = PriceDiscTable.RecId

    Many PricingRuleApplicability records → exactly one PriceDiscTable record

  • RetailChannelTable → RetailChannelTable

    Join on RetailChannelTable = RetailChannelTable.RecId

    Many PricingRuleApplicability records → exactly one RetailChannelTable record

Get this data out

No public entity reads from PricingRuleApplicability. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk