Table
RetailLoyaltyScheme
Loyalty schemes
Holds loyalty schemes, each identified by a scheme ID. Each scheme has a description and can link to a loyalty program (affiliation). Other loyalty tables, such as channels, earn and redeem lines and excluded affiliations, refer to these schemes.
- Table name
RetailLoyaltyScheme- Module
Commerce customers- Table group
Main- Table type
Regular- Data per company
No- Configuration key
Retail- Primary index
RecId- Replacement key
LoyaltySchemeIdx- Key fields
LoyaltySchemeId- Model
Foundation
Fields (12)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
LoyaltySchemeIdUnique ID of the loyalty scheme. | StringRetailLoyaltySchemeId | Yes | RetailLoyaltySchemeEntityRetailLoyaltyEarnSchemeLineEntityRetailLoyaltyRedeemSchemeLineEntityand 2 more | |
AffiliationPoints to the loyalty program (affiliation) that the scheme is linked to. | Int64RefRecId | Yes | RetailAffiliation.RecId | RetailLoyaltySchemeEntity |
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 | |
DescriptionFree-text description of the loyalty scheme. | String (255)RetailDescriptionEx5 | No | RetailLoyaltySchemeEntity | |
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 | |
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 |
Indexes (1)
LoyaltySchemeIdxReplacement keyUnique, alternate key.
Relations (1)
Each relation joins RetailLoyaltyScheme to another table on the fields shown.
RetailAffiliation→RetailAffiliationJoin on
Affiliation = RetailAffiliation.RecIdMany RetailLoyaltyScheme records → exactly one RetailAffiliation record
Get this data out
Tables are not exposed directly. These public entities read from RetailLoyaltyScheme; use one of them in Power BI, Power Platform or a data management project.
RetailLoyaltySchemeEntity· 3 fields from this tableRetailLoyaltyEarnSchemeLineEntity· 1 field from this tableRetailLoyaltyRedeemSchemeLineEntity· 1 field from this tableRetailLoyaltySchemeChannelEntity· 1 field from this tableRetailLoyaltySchemeExcludedAffiliationEntity· 1 field from this table
Need help with RetailLoyaltyScheme in a report, an integration or a migration? Talk to Dr Dynamics.