Data entity

RetailLoyaltyCardTierV2Entity

A second version of the loyalty card tier entity. It shows the tier a card holds over a date range, identified by card number, tier, tier affiliation name and program name. It has a retail affiliation type field and joins to the program, card and tier tables.

Entity name
RetailLoyaltyCardTierV2Entity
Public entity name
LoyaltyCardTierV2
OData collection
LoyaltyCardTiersV2
Category
Not set
Module
Commerce customers
Read-only
No
Data management enabled
Yes
Configuration key
Retail
Keys
LoyaltyProgramName, LoyaltyTierAffiliationName, LoyaltyTierId, LoyaltyCardNumber, ValidFrom, ValidTo
Staging table
RetailLoyaltyCardTierV2Staging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/LoyaltyCardTiersV2
Dataverse virtual table
mserp_retailloyaltycardtierv2entity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Enabled: you can use it in import and export projects.

Data sources

  • RetailLoyaltyCardTier · root
  • RetailAffiliation · InnerJoin to RetailLoyaltyCardTier · read-only
  • RetailLoyaltyCard · InnerJoin to RetailLoyaltyCardTier · read-only
  • RetailLoyaltyTier · OuterJoin to RetailLoyaltyCardTier · read-only
  • RetailAffiliation1 (table RetailAffiliation) · InnerJoin to RetailLoyaltyTier · read-only

Fields (11)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
AffiliationPoints to the loyalty program.Int64
RefRecId
YesNo (private)RetailAffiliation.RecIdRetailLoyaltyCardTier.Affiliation
LoyaltyCardPoints to the loyalty card.Int64
RefRecId
YesNo (private)RetailLoyaltyCard.RecIdRetailLoyaltyCardTier.LoyaltyCard
LoyaltyTierPoints to the program tier assigned to the card.Int64
RefRecId
NoNo (private)RetailLoyaltyTier.RecIdRetailLoyaltyCardTier.LoyaltyTier
ValidFromThe date the tier starts to apply.Date
ValidFromDate
NoYesRetailLoyaltyCardTier.ValidFrom
ValidToThe date the tier stops applying.Date
ValidToDate
NoYesRetailLoyaltyCardTier.ValidTo
AffiliationTypeType of affiliation: general or loyalty.Enum
RetailAffiliationType
  • General 0
  • Loyalty 1
YesYesRetailAffiliation.AffiliationType
LoyaltyProgramNameName of the affiliation or loyalty program. It is the key.String (64)
RetailAffiliationName
YesYesRetailAffiliation.Name
LoyaltyCardNumberThe number that identifies the loyalty card.String (30)
RetailLoyaltyCardNumber
YesYesRetailLoyaltyCard.CardNumber
LoyaltyTierAffiliationRecord ID of the loyalty program the tier belongs to. It points to a loyalty program.Int64
RefRecId
YesNo (private)RetailAffiliation.RecIdRetailLoyaltyTier.Affiliation
LoyaltyTierIdIdentifier or name of the tier.String (64)
RetailAffiliationTierId
YesYesRetailLoyaltyTier.TierId
LoyaltyTierAffiliationNameName of the affiliation or loyalty program. It is the key.String (64)
RetailAffiliationName
YesYesRetailAffiliation.Name

Foreign keys (4)

Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.

Need help with RetailLoyaltyCardTierV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk