Table
RetailLoyaltyCardTier
Loyalty card affiliation tier
Links a loyalty card to a tier within a loyalty program for a period of time. Each row has a start date and an end date. It has no defined key in the metadata.
- Table name
RetailLoyaltyCardTier- Module
Commerce customers- Table group
Miscellaneous- Table type
Regular- Data per company
No- Configuration key
Retail- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (10)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AffiliationPoints to the loyalty program. | Int64RefRecId | Yes | RetailAffiliation.RecId | RetailLoyaltyCardTierV2EntityRetailLoyaltyCardTierEntity |
LoyaltyCardPoints to the loyalty card. | Int64RefRecId | Yes | RetailLoyaltyCard.RecId | RetailLoyaltyCardTierV2EntityRetailLoyaltyCardTierEntity |
LoyaltyTierPoints to the program tier assigned to the card. | Int64RefRecId | No | RetailLoyaltyTier.RecId | RetailLoyaltyCardTierV2EntityRetailLoyaltyCardTierEntity |
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 | |
ValidFromThe date the tier starts to apply. | DateValidFromDate | No | RetailLoyaltyCardTierV2EntityRetailLoyaltyCardTierEntity | |
ValidToThe date the tier stops applying. | DateValidToDate | No | RetailLoyaltyCardTierV2EntityRetailLoyaltyCardTierEntity |
Indexes (4)
CardTierIdxLoyaltyTier,LoyaltyCard,AffiliationNot unique.
CardTierValidIdxAffiliation,LoyaltyTier,LoyaltyCard,ValidFrom,ValidToNot unique.
RetailLoyaltyCardTierIdxNot unique.
RetailLoyaltyCardTierPerfIdxNot unique.
Relations (3)
Each relation joins RetailLoyaltyCardTier to another table on the fields shown.
RetailAffiliation→RetailAffiliationJoin on
RetailAffiliation.AffiliationType = RetailAffiliationType::Loyalty,Affiliation = RetailAffiliation.RecIdMany RetailLoyaltyCardTier records → exactly one RetailAffiliation record
RetailLoyaltyCard→RetailLoyaltyCardJoin on
LoyaltyCard = RetailLoyaltyCard.RecIdMany RetailLoyaltyCardTier records → exactly one RetailLoyaltyCard record
RetailLoyaltyTier→RetailLoyaltyTierJoin on
LoyaltyTier = RetailLoyaltyTier.RecIdMany RetailLoyaltyCardTier records → exactly one RetailLoyaltyTier record
Get this data out
Tables are not exposed directly. These public entities read from RetailLoyaltyCardTier; use one of them in Power BI, Power Platform or a data management project.
RetailLoyaltyCardTierV2Entity· 5 fields from this tableRetailLoyaltyCardTierEntity· 5 fields from this table
Need help with RetailLoyaltyCardTier in a report, an integration or a migration? Talk to Dr Dynamics.