Table
RetailLoyaltyEarnSchemeLine
Retail loyalty scheme earn line
Holds the lines of a loyalty scheme that define how reward points are earned. Each line sets an activity, such as a purchase by amount or quantity, and the reward points given for it. Lines link to a scheme, tier, program and reward point type, and have a validity period.
- Table name
RetailLoyaltyEarnSchemeLine- Module
Commerce customers- Table group
Main- Table type
Regular- Data per company
No- Configuration key
Retail- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (21)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
FromActivityAmountCurrencyThe currency of the activity amount. | String (3)CurrencyCode | No | Currency.CurrencyCode | RetailLoyaltyEarnSchemeLineEntity |
FromActivityAmountQtyThe activity amount or quantity needed to earn points. | RealRetailLoyaltyActivityAmountQty | Yes | RetailLoyaltyEarnSchemeLineEntity | |
FromActivityRetailGroupMemberLinePoints to the retail group member line that the activity applies to. | Int64RefRecId | No | RetailGroupMemberLine.RecId | RetailLoyaltyEarnSchemeLineEntity |
FromActivityTypeThe kind of activity that earns points, such as Purchase products by amount, Purchase products by quantity, Sales transaction count or Other. | EnumRetailLoyaltyActivityType (enum) | Yes | RetailLoyaltyEarnSchemeLineEntity | |
LineNumThe number of the line within the scheme. | RealLineNum | No | RetailLoyaltyEarnSchemeLineEntity | |
LoyaltySchemePoints to the loyalty scheme that the line belongs to. | Int64RefRecId | Yes | RetailLoyaltyScheme.RecId | RetailLoyaltyEarnSchemeLineEntity |
LoyaltyTierPoints to the loyalty tier the line applies to. | Int64RefRecId | No | RetailLoyaltyTier.RecId | RetailLoyaltyEarnSchemeLineEntity |
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 | |
RetailAffiliationIdPoints to the loyalty program of the line. | Int64RetailAffiliationId | No | RetailAffiliation.RecId | RetailLoyaltyEarnSchemeLineEntity |
RetailFromOtherActivityTypeIdPoints to the other activity type, used when the activity type is Other. | Int64RetailLoyaltyOtherActivityTypeRefRecId | No | RetailLoyaltyOtherActivityType.RecId | RetailLoyaltyEarnSchemeLineEntity |
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 | |
ToRewardPointPoints to the reward point type given by the line. | Int64RefRecId | Yes | RetailLoyaltyRewardPoint.RecId | RetailLoyaltyEarnSchemeLineEntity |
ToRewardPointAmountQtyThe number of reward points given. | RealRetailLoyaltyRewardPointAmountQty | Yes | RetailLoyaltyEarnSchemeLineEntity | |
ValidFromThe date the line starts to apply. | DateValidFromDate | No | RetailLoyaltyEarnSchemeLineEntity | |
ValidToThe date the line stops applying. | DateValidToDate | No | RetailLoyaltyEarnSchemeLineEntity |
Indexes (2)
PurchaseProductLineIdxLoyaltyScheme,LoyaltyTier,FromActivityType,FromActivityRetailGroupMemberLine,ToRewardPointNot unique.
SchemeLineIdxUnique.
Relations (7)
Each relation joins RetailLoyaltyEarnSchemeLine to another table on the fields shown.
FromActivityAmountCurrency→CurrencyJoin on
FromActivityAmountCurrency = Currency.CurrencyCodeMany RetailLoyaltyEarnSchemeLine records → zero or one Currency record
RetailGroupMemberLine→RetailGroupMemberLineJoin on
FromActivityRetailGroupMemberLine = RetailGroupMemberLine.RecIdMany RetailLoyaltyEarnSchemeLine records → zero or one RetailGroupMemberLine record
RetailLoyaltyRewardPoint→RetailLoyaltyRewardPointJoin on
ToRewardPoint = RetailLoyaltyRewardPoint.RecIdMany RetailLoyaltyEarnSchemeLine records → exactly one RetailLoyaltyRewardPoint record
RetailLoyaltyScheme→RetailLoyaltySchemeJoin on
LoyaltyScheme = RetailLoyaltyScheme.RecIdMany RetailLoyaltyEarnSchemeLine records → exactly one RetailLoyaltyScheme record
RetailLoyaltyTier→RetailLoyaltyTierJoin on
LoyaltyTier = RetailLoyaltyTier.RecIdMany RetailLoyaltyEarnSchemeLine records → exactly one RetailLoyaltyTier record
RetailAffiliation→RetailAffiliationJoin on
RetailAffiliationId = RetailAffiliation.RecIdMany RetailLoyaltyEarnSchemeLine records → exactly one RetailAffiliation record
RetailFromOtherActivityType→RetailLoyaltyOtherActivityTypeJoin on
RetailFromOtherActivityTypeId = RetailLoyaltyOtherActivityType.RecIdMany RetailLoyaltyEarnSchemeLine records → zero or one RetailLoyaltyOtherActivityType record
Get this data out
Tables are not exposed directly. These public entities read from RetailLoyaltyEarnSchemeLine; use one of them in Power BI, Power Platform or a data management project.
RetailLoyaltyEarnSchemeLineEntity· 13 fields from this table
Need help with RetailLoyaltyEarnSchemeLine in a report, an integration or a migration? Talk to Dr Dynamics.