Table
RetailAffiliation
Loyalty program
Lists loyalty programs and other customer affiliations, identified by name. Each record has a type (general or loyalty). Other records, such as loyalty tiers, point to it.
- Table name
RetailAffiliation- Module
Commerce customers- Table group
Miscellaneous- Table type
Regular- Data per company
No- Configuration key
Retail- Primary index
None- Replacement key
AffiliationIdx- Key fields
Name- Model
Foundation
Fields (9)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
NameName of the affiliation or loyalty program. It is the key. | String (64)RetailAffiliationName | Yes | RetailAffiliationEntityRetailLoyaltyEntityRetailLoyaltyCardRewardPointNonTransactionalActivityV2Entityand 33 more | |
AffiliationTypeType of affiliation: general or loyalty. | EnumRetailAffiliationType (enum) | Yes | RetailLoyaltyCardTierV2EntityRetailLoyaltyCardTierEntity | |
HideInChannelsWhether the program is hidden in channels (No or Yes). | EnumRetailHideInChannelsEdtNoYesCombo (enum) | No | RetailAffiliationEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PoolRelatedCardsYes/No option to combine related loyalty cards. | EnumRetailLoyaltyPoolRelatedCardsNoYes (enum) | No | RetailLoyaltyEntity | |
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)
AffiliationIdxReplacement keyUnique, alternate key.
Get this data out
Tables are not exposed directly. These public entities read from RetailAffiliation; use one of them in Power BI, Power Platform or a data management project.
RetailAffiliationEntity· 2 fields from this tableRetailLoyaltyEntity· 2 fields from this tableRetailLoyaltyCardRewardPointNonTransactionalActivityV2Entity· 1 field from this tableRetailLoyaltyCardRewardPointTransactionV2Entity· 2 fields from this tableRetailLoyaltyCardTierV2Entity· 3 fields from this tableRetailAffiliationPriceGroupEntity· 1 field from this tableRetailAffiliationTranslationEntity· 1 field from this tableRetailCustomerAffiliationEntity· 1 field from this tableRetailLoyaltyCardRewardPointAdjustmentEntity· 1 field from this tableRetailLoyaltyCardRewardPointTransactionEntity· 2 fields from this tableRetailLoyaltyCardTierEntity· 3 fields from this tableRetailLoyaltyEarnSchemeLineEntity· 2 fields from this tableRetailLoyaltyPriceGroupEntity· 1 field from this tableRetailLoyaltyProgramTranslationEntity· 1 field from this tableRetailLoyaltyRedeemSchemeLineEntity· 2 fields from this tableRetailLoyaltySchemeEntity· 1 field from this tableRetailLoyaltySchemeExcludedAffiliationEntity· 1 field from this tableRetailLoyaltyTierEntity· 1 field from this tableRetailLoyaltyTierPriceGroupEntity· 1 field from this tableRetailLoyaltyTierRuleEntity· 1 field from this tableRetailLoyaltyTierTranslationEntity· 1 field from this tableRetailPriceGroupApplicabilityRuleEntity· 2 fields from this tableRetailTransactionAffiliationLineEntity· 1 field from this tableRetailTransactionAffiliationTransEntity· 2 fields from this tableRetailTransactionLoyaltyLineEntity· 1 field from this tableRetailTransactionLoyaltyRewardPointsLineEntity· 1 field from this tableRetailTransactionLoyaltyRewardPointTransEntity· 2 fields from this table
Need help with RetailAffiliation in a report, an integration or a migration? Talk to Dr Dynamics.