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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AttributeValue1First criteria value, stored as text. | String (100)Criterias | No | None | |
AttributeValue10Tenth criteria value, stored as text. | String (100)Criterias | No | None | |
AttributeValue11Eleventh criteria value, stored as text. | String (100)Criterias | No | None | |
AttributeValue12Twelfth criteria value, stored as text. | String (100)Criterias | No | None | |
AttributeValue13Thirteenth criteria value, stored as text. | String (100)Criterias | No | None | |
AttributeValue14Fourteenth criteria value, stored as text. | String (100)Criterias | No | None | |
AttributeValue15Fifteenth criteria value, stored as text. | String (100)Criterias | No | None | |
AttributeValue2Second criteria value, stored as text. | String (100)Criterias | No | None | |
AttributeValue3Third criteria value, stored as text. | String (100)Criterias | No | None | |
AttributeValue4Fourth criteria value, stored as text. | String (100)Criterias | No | None | |
AttributeValue5Fifth criteria value, stored as text. | String (100)Criterias | No | None | |
AttributeValue6Sixth criteria value, stored as text. | String (100)Criterias | No | None | |
AttributeValue7Seventh criteria value, stored as text. | String (100)Criterias | No | None | |
AttributeValue8Eighth criteria value, stored as text. | String (100)Criterias | No | None | |
AttributeValue9Ninth criteria value, stored as text. | String (100)Criterias | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DirPartyTypeType of party, such as person, organisation, legal entity, team or operating unit. | EnumDirPartyType (enum) | No | None | |
HashValueHash code built for the row, held as text. | String (100)PricingApplicabilityHashValue | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PriceComponentKind of price component, such as base price, trade agreement, discount or rebate. | EnumPriceComponent (enum) | No | PriceComponentCode.PriceComponent | None |
PriceComponentCodeNameName of the price component code, matched together with the price component. | String (60)Name | No | PriceComponentCode.Name | None |
PricingRuleRecIdSystem record ID of the linked price group and pricing rule link. | Int64RefRecId | No | None | |
PricingRuleTableIdID of the table that the linked pricing rule record belongs to. | IntegerRefTableId | No | None | |
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 | |
RetailChannelTablePoints to the retail channel record linked to this row. | Int64RefRecId | No | RetailChannelTable.RecId | None |
StatusShows whether the row is disabled or enabled. | EnumRetailDisabledEnabled (enum) | 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 | |
ValidFromFirst date on which the row is valid. | DateValidFromDate | No | None | |
ValidToLast date on which the row is valid. | DateValidToDate | No | None |
Indexes (1)
PriceComponentCodeHashValuePriceComponentCodeName,PriceComponent,HashValue,PricingRuleRecIdNot unique.
Relations (6)
Each relation joins PricingRuleApplicability to another table on the fields shown.
PriceComponentCode→PriceComponentCodeJoin on
PriceComponentCodeName = PriceComponentCode.Name,PriceComponent = PriceComponentCode.PriceComponentMany PricingRuleApplicability records → zero or one PriceComponentCode record
PriceGroupPricingRuleLink→PriceGroupPricingRuleLinkJoin on
PricingRuleTableId = PriceGroupPricingRuleLink.PricingRuleTableId,PricingRuleRecId = PriceGroupPricingRuleLink.PricingRuleRecIdCardinality not set in the metadata.
PriceDiscGroup→PriceDiscGroupJoin on
PricingRuleTableId = PriceDiscGroup.TableId,PricingRuleRecId = PriceDiscGroup.RecId,PriceComponent = PriceComponent::PriceGroupMany PricingRuleApplicability records → exactly one PriceDiscGroup record
RetailPeriodicDiscount→RetailPeriodicDiscountJoin on
PricingRuleTableId = RetailPeriodicDiscount.TableId,PricingRuleRecId = RetailPeriodicDiscount.RecIdMany PricingRuleApplicability records → exactly one RetailPeriodicDiscount record
PriceDiscTable→PriceDiscTableJoin on
PricingRuleTableId = PriceDiscTable.TableId,PricingRuleRecId = PriceDiscTable.RecIdMany PricingRuleApplicability records → exactly one PriceDiscTable record
RetailChannelTable→RetailChannelTableJoin on
RetailChannelTable = RetailChannelTable.RecIdMany 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.