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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
RetailAffiliationPoints to the loyalty program (affiliation) that the price group is linked to. | Int64RefRecId | Yes | RetailAffiliation.RecId | RetailLoyaltyTierPriceGroupEntity |
PriceDiscGroupPoints to the price group (by system record ID) that is linked to the loyalty program. | Int64RefRecId | Yes | PriceDiscGroup.RecId | RetailLoyaltyTierPriceGroupEntity |
RetailLoyaltyTierPoints to the loyalty tier that the price group applies to. | Int64RefRecId | No | RetailLoyaltyTier.RecId | RetailLoyaltyTierPriceGroupEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
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 |
Indexes (1)
AffiliationPriceGroupReplacement keyRetailAffiliation,PriceDiscGroup,RetailLoyaltyTierUnique, alternate key.
Relations (3)
Each relation joins RetailAffiliationPriceGroup to another table on the fields shown.
PriceDiscGroup→PriceDiscGroupJoin on
PriceDiscGroup = PriceDiscGroup.RecId,PriceDiscGroup.Module = ModuleInventCustVend::Cust,PriceDiscGroup.Type = PriceGroupType::PriceGroupMany RetailAffiliationPriceGroup records → exactly one PriceDiscGroup record
RetailAffiliation→RetailAffiliationJoin on
RetailAffiliation = RetailAffiliation.RecIdMany RetailAffiliationPriceGroup records → exactly one RetailAffiliation record
RetailLoyaltyTier→RetailLoyaltyTierJoin on
RetailLoyaltyTier = RetailLoyaltyTier.RecIdMany 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.
RetailAffiliationPriceGroupEntity· 0 fields from this tableRetailLoyaltyPriceGroupEntity· 0 fields from this tableRetailLoyaltyTierPriceGroupEntity· 3 fields from this table
Need help with RetailAffiliationPriceGroup in a report, an integration or a migration? Talk to Dr Dynamics.