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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CardNumberThe number that identifies the loyalty card.String (30)
RetailLoyaltyCardNumber
YesRetailLoyaltyCardEntityRetailLoyaltyCardEntityRetailLoyaltyCardTierV2Entityand 2 more
CardTenderTypeThe card type, such as As card tender, As contact tender, No tender or Blocked.Enum
RetailLoyaltyTenderType
RetailLoyaltyTenderTypeBase (enum)
YesRetailLoyaltyCardEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
LoyaltyBlockedDateThe date the card was blocked.Date
RetailLoyaltyBlockedDate
NoNone
LoyaltyEnrollmentDateThe date the card was enrolled.Date
ValidFromDate
NoRetailLoyaltyCardEntity
LoyaltyEnrollmentDateLocalThe enrolment date in local time.Date
ValidFromDate
NoRetailLoyaltyCardEntity
LoyaltyEnrollmentTimeThe time of day the card was enrolled.Time
RetailLoyaltyEnrollmentTime
NoRetailLoyaltyCardEntity
LoyaltyEnrollmentTimeLocalThe enrolment time in local time.Time
RetailLoyaltyEnrollmentTime
NoRetailLoyaltyCardEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
OMOperatingUnitIdPoints to the operating unit where the customer enrolled, shown as the enrolment source.Int64
OMOperatingUnitRefRecId
NoOMOperatingUnit.RecIdRetailLoyaltyCardEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PartyPoints to the customer or party in the global address book who holds the card.Int64
DirPartyRecId
NoDirPartyTable.RecIdRetailLoyaltyCardEntity
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
ReplacementCardPoints to another loyalty card that replaces this one.Int64
RefRecId
NoRetailLoyaltyCard.RecIdRetailLoyaltyCardEntity
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

Indexes (3)

Relations (3)

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

  • DirPartyTable → DirPartyTable

    Join on Party = DirPartyTable.RecId

    Many RetailLoyaltyCard records → zero or one DirPartyTable record

  • RetailLoyaltyReplacementCard → RetailLoyaltyCard

    Join on ReplacementCard = RetailLoyaltyCard.RecId

    Zero or one RetailLoyaltyCard record → zero or one RetailLoyaltyCard record

  • OMOperatingUnitTable → OMOperatingUnit

    Join on OMOperatingUnitId = OMOperatingUnit.RecId

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

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

Email sales@drdynamics.co.uk