Table

RetailAffiliationPriceGroup

Affiliation price groups

Links a loyalty program (affiliation) to a price group, optionally for a specific loyalty tier. The key is the combination of loyalty program, price group and loyalty tier. Several entities use it to expose price groups by program or by tier.

Table name
RetailAffiliationPriceGroup
Module
Commerce customers
Table group
Miscellaneous
Table type
Regular
Data per company
No
Configuration key
Retail
Primary index
None
Replacement key
AffiliationPriceGroup
Key fields
RetailAffiliation, PriceDiscGroup, RetailLoyaltyTier
Model
Foundation

Fields (8)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
RetailAffiliationPoints to the loyalty program (affiliation) that the price group is linked to.Int64
RefRecId
YesRetailAffiliation.RecIdRetailLoyaltyTierPriceGroupEntity
PriceDiscGroupPoints to the price group (by system record ID) that is linked to the loyalty program.Int64
RefRecId
YesPriceDiscGroup.RecIdRetailLoyaltyTierPriceGroupEntity
RetailLoyaltyTierPoints to the loyalty tier that the price group applies to.Int64
RefRecId
NoRetailLoyaltyTier.RecIdRetailLoyaltyTierPriceGroupEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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 RetailAffiliationPriceGroup to another table on the fields shown.

  • PriceDiscGroup → PriceDiscGroup

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

    Many RetailAffiliationPriceGroup records → exactly one PriceDiscGroup record

  • RetailAffiliation → RetailAffiliation

    Join on RetailAffiliation = RetailAffiliation.RecId

    Many RetailAffiliationPriceGroup records → exactly one RetailAffiliation record

  • RetailLoyaltyTier → RetailLoyaltyTier

    Join on RetailLoyaltyTier = RetailLoyaltyTier.RecId

    Many RetailAffiliationPriceGroup records → zero or one RetailLoyaltyTier record

Get this data out

Tables are not exposed directly. These public entities read from RetailAffiliationPriceGroup; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk