Table
RetailLoyaltyCard
Loyalty card
Holds loyalty cards, identified by card number. Each card is linked to a customer in the global address book and to the operating unit where it was enrolled. It also holds the card type, enrolment dates and blocked date, and can point to a replacement card.
- Table name
RetailLoyaltyCard- Module
Commerce customers- Table group
Miscellaneous- Table type
Regular- Data per company
No- Configuration key
Retail- Primary index
CardNumberIdx- Replacement key
CardNumberIdx- Key fields
CardNumber- Model
Foundation
Fields (19)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CardNumberThe number that identifies the loyalty card. | String (30)RetailLoyaltyCardNumber | Yes | RetailLoyaltyCardEntityRetailLoyaltyCardEntityRetailLoyaltyCardTierV2Entityand 2 more | |
CardTenderTypeThe card type, such as As card tender, As contact tender, No tender or Blocked. | EnumRetailLoyaltyTenderTypeRetailLoyaltyTenderTypeBase (enum) | Yes | RetailLoyaltyCardEntity | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
LoyaltyBlockedDateThe date the card was blocked. | DateRetailLoyaltyBlockedDate | No | None | |
LoyaltyEnrollmentDateThe date the card was enrolled. | DateValidFromDate | No | RetailLoyaltyCardEntity | |
LoyaltyEnrollmentDateLocalThe enrolment date in local time. | DateValidFromDate | No | RetailLoyaltyCardEntity | |
LoyaltyEnrollmentTimeThe time of day the card was enrolled. | TimeRetailLoyaltyEnrollmentTime | No | RetailLoyaltyCardEntity | |
LoyaltyEnrollmentTimeLocalThe enrolment time in local time. | TimeRetailLoyaltyEnrollmentTime | No | RetailLoyaltyCardEntity | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
OMOperatingUnitIdPoints to the operating unit where the customer enrolled, shown as the enrolment source. | Int64OMOperatingUnitRefRecId | No | OMOperatingUnit.RecId | RetailLoyaltyCardEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PartyPoints to the customer or party in the global address book who holds the card. | Int64DirPartyRecId | No | DirPartyTable.RecId | RetailLoyaltyCardEntity |
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 | |
ReplacementCardPoints to another loyalty card that replaces this one. | Int64RefRecId | No | RetailLoyaltyCard.RecId | RetailLoyaltyCardEntity |
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 (3)
CardNumberIdxPrimary indexReplacement keyUnique, alternate key.
RetailLoyaltyCard_IdxParty,ReplacementCard,CardNumberNot unique.
PartyCardNumber_IdxNot unique.
Relations (3)
Each relation joins RetailLoyaltyCard to another table on the fields shown.
DirPartyTable→DirPartyTableJoin on
Party = DirPartyTable.RecIdMany RetailLoyaltyCard records → zero or one DirPartyTable record
RetailLoyaltyReplacementCard→RetailLoyaltyCardJoin on
ReplacementCard = RetailLoyaltyCard.RecIdZero or one RetailLoyaltyCard record → zero or one RetailLoyaltyCard record
OMOperatingUnitTable→OMOperatingUnitJoin on
OMOperatingUnitId = OMOperatingUnit.RecIdMany RetailLoyaltyCard records → zero or one OMOperatingUnit record
Get this data out
Tables are not exposed directly. These public entities read from RetailLoyaltyCard; use one of them in Power BI, Power Platform or a data management project.
RetailLoyaltyCardEntity· 10 fields from this tableRetailLoyaltyCardTierV2Entity· 1 field from this tableRetailLoyaltyCardRewardPointAdjustmentEntity· 1 field from this tableRetailLoyaltyCardTierEntity· 1 field from this table
Need help with RetailLoyaltyCard in a report, an integration or a migration? Talk to Dr Dynamics.