Table

PriceGroupPricingRuleLink

Linkage between price group and pricing rule

Links a price group to a pricing rule, such as a periodic discount. The rule is identified by a table ID and a record ID. It also holds the price component. The table has no defined key.

Table name
PriceGroupPricingRuleLink
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 (10)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
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 the link applies to.Enum
PriceComponent (enum)
NoNone
PriceDiscGroupPoints to the price group record.Int64
RefRecId
NoPriceDiscGroup.RecIdNone
PricingRuleRecIdSystem record ID of the pricing rule in that table.Int64
RefRecId
NoNone
PricingRuleTableIdID of the table that holds the pricing rule, such as the periodic discount table.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
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

Indexes (1)

Relations (3)

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

  • PriceDiscGroup → PriceDiscGroup

    Join on PriceDiscGroup = PriceDiscGroup.RecId, PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust

    Many PriceGroupPricingRuleLink records → exactly one PriceDiscGroup record

  • RetailPeriodicDiscount → RetailPeriodicDiscount

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

    Many PriceGroupPricingRuleLink records → zero or one RetailPeriodicDiscount record

  • PriceDiscTable → PriceDiscTable

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

    Many PriceGroupPricingRuleLink records → zero or one PriceDiscTable record

Get this data out

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

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

Email sales@drdynamics.co.uk