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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AffiliationPoints to the loyalty program.Int64
RefRecId
YesRetailAffiliation.RecIdRetailLoyaltyCardTierV2EntityRetailLoyaltyCardTierEntity
LoyaltyCardPoints to the loyalty card.Int64
RefRecId
YesRetailLoyaltyCard.RecIdRetailLoyaltyCardTierV2EntityRetailLoyaltyCardTierEntity
LoyaltyTierPoints to the program tier assigned to the card.Int64
RefRecId
NoRetailLoyaltyTier.RecIdRetailLoyaltyCardTierV2EntityRetailLoyaltyCardTierEntity
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
ValidFromThe date the tier starts to apply.Date
ValidFromDate
NoRetailLoyaltyCardTierV2EntityRetailLoyaltyCardTierEntity
ValidToThe date the tier stops applying.Date
ValidToDate
NoRetailLoyaltyCardTierV2EntityRetailLoyaltyCardTierEntity

Indexes (4)

Relations (3)

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

  • RetailAffiliation → RetailAffiliation

    Join on RetailAffiliation.AffiliationType = RetailAffiliationType::Loyalty, Affiliation = RetailAffiliation.RecId

    Many RetailLoyaltyCardTier records → exactly one RetailAffiliation record

  • RetailLoyaltyCard → RetailLoyaltyCard

    Join on LoyaltyCard = RetailLoyaltyCard.RecId

    Many RetailLoyaltyCardTier records → exactly one RetailLoyaltyCard record

  • RetailLoyaltyTier → RetailLoyaltyTier

    Join on LoyaltyTier = RetailLoyaltyTier.RecId

    Many 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.

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

Email sales@drdynamics.co.uk