Data entity
RetailLoyaltyEarnSchemeLineEntity
Holds the lines of a loyalty scheme that set how reward points are earned. Each line is keyed by scheme ID and line number. It has activity type, amount or quantity, currency, reward points, tier and a start and end date. Lines can be limited by item, product variant dimensions or product category.
- Entity name
RetailLoyaltyEarnSchemeLineEntity- Public entity name
RetailLoyaltyEarnSchemeLine- OData collection
RetailLoyaltyEarnSchemeLines- Category
Not set- Module
Commerce customers- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
LoyaltySchemeId, LineNumber- Staging table
RetailLoyaltyEarnSchemeLineStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/RetailLoyaltyEarnSchemeLines- Dataverse virtual table
mserp_retailloyaltyearnschemelineentity. 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
RetailLoyaltyEarnSchemeLine· rootRetailLoyaltyRewardPoint· InnerJoin toRetailLoyaltyEarnSchemeLine· read-onlyRetailLoyaltyScheme· InnerJoin toRetailLoyaltyEarnSchemeLine· read-onlyRetailLoyaltyTier· OuterJoin toRetailLoyaltyEarnSchemeLine· read-onlyRetailAffiliation· OuterJoin toRetailLoyaltyTier· read-onlyRetailAffiliationName(tableRetailAffiliation) · OuterJoin toRetailLoyaltyEarnSchemeLine· read-onlyRetailLoyaltyOtherActivityType· OuterJoin toRetailLoyaltyEarnSchemeLine· read-only
Fields (28)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
FromActivityAmountCurrencyThe currency of the activity amount. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | RetailLoyaltyEarnSchemeLine.FromActivityAmountCurrency |
FromActivityAmountQtyThe activity amount or quantity needed to earn points. | RealRetailLoyaltyActivityAmountQty | Yes | Yes | RetailLoyaltyEarnSchemeLine.FromActivityAmountQty | |
FromActivityRetailGroupMemberLinePoints to the retail group member line that the activity applies to. | Int64RefRecId | No | No (private) | RetailGroupMemberLine.RecId | RetailLoyaltyEarnSchemeLine.FromActivityRetailGroupMemberLine |
FromActivityTypeThe kind of activity that earns points, such as Purchase products by amount, Purchase products by quantity, Sales transaction count or Other. | Enum
| Yes | Yes | RetailLoyaltyEarnSchemeLine.FromActivityType | |
LoyaltySchemePoints to the loyalty scheme that the line belongs to. | Int64RefRecId | No | No (private) | RetailLoyaltyScheme.RecId | RetailLoyaltyEarnSchemeLine.LoyaltyScheme |
LoyaltyTierPoints to the loyalty tier the line applies to. | Int64RefRecId | No | No (private) | RetailLoyaltyTier.RecId | RetailLoyaltyEarnSchemeLine.LoyaltyTier |
ToRewardPointPoints to the reward point type given by the line. | Int64RefRecId | No | No (private) | RetailLoyaltyRewardPoint.RecId | RetailLoyaltyEarnSchemeLine.ToRewardPoint |
ToRewardPointAmountQtyThe number of reward points given. | RealRetailLoyaltyRewardPointAmountQty | Yes | Yes | RetailLoyaltyEarnSchemeLine.ToRewardPointAmountQty | |
ValidFromThe date the line starts to apply. | DateValidFromDate | No | Yes | RetailLoyaltyEarnSchemeLine.ValidFrom | |
ValidToThe date the line stops applying. | DateValidToDate | No | Yes | RetailLoyaltyEarnSchemeLine.ValidTo | |
LineNumberThe number of the line within the scheme. | RealLineNum | Yes | Yes | RetailLoyaltyEarnSchemeLine.LineNum | |
ToRewardPointIdIdentifier of the reward point. It is the key. | String (64)RetailLoyaltyRewardPointID | Yes | Yes | RetailLoyaltyRewardPoint.RewardPointId | |
LoyaltySchemeIdUnique ID of the loyalty scheme. | StringRetailLoyaltySchemeId | Yes | Yes | RetailLoyaltyScheme.LoyaltySchemeId | |
RetailLoyaltyTier_AffiliationRecord ID of the loyalty program the tier belongs to. It points to a loyalty program. | Int64RefRecId | No | No (private) | RetailAffiliation.RecId | RetailLoyaltyTier.Affiliation |
LoyaltyTierIdIdentifier or name of the tier. | String (64)RetailAffiliationTierId | No | Yes | RetailLoyaltyTier.TierId | |
LoyaltyProgramNameName of the affiliation or loyalty program. It is the key. | String (64)RetailAffiliationName | No | Yes | RetailAffiliation.Name | |
ItemIdItem number the earn line applies to. | String (20)ItemId | No | Yes | virtual | |
ColorProduct colour the earn line applies to. | StringEcoResColorName | No | Yes | virtual | |
SizeProduct size the earn line applies to. | StringEcoResSizeName | No | Yes | virtual | |
StyleProduct style the earn line applies to. | StringEcoResStyleName | No | Yes | virtual | |
ConfigIdProduct configuration the earn line applies to. | String (50)EcoResConfigurationName | No | Yes | virtual | |
CategoryHierarchyNameName of the product category hierarchy the earn line refers to. | String (128)EcoResCategoryHierarchyName | No | Yes | virtual | |
CategoryNameName of the product category the earn line refers to. | String (254)EcoResCategoryName | No | Yes | virtual | |
RetailAffiliationIdPoints to the loyalty program of the line. | Int64RetailAffiliationId | No | No (private) | RetailAffiliation.RecId | RetailLoyaltyEarnSchemeLine.RetailAffiliationId |
AffiliationNameName of the affiliation or loyalty program. It is the key. | String (64)RetailAffiliationName | Yes | Yes | RetailAffiliation.Name | |
RetailFromOtherActivityTypeIdPoints to the other activity type, used when the activity type is Other. | Int64RetailLoyaltyOtherActivityTypeRefRecId | No | No (private) | RetailLoyaltyOtherActivityType.RecId | RetailLoyaltyEarnSchemeLine.RetailFromOtherActivityTypeId |
RetailFromOtherActivityTypeThe name of the other activity type. | String (50)RetailLoyaltyOtherActivityTypeName | Yes | Yes | RetailLoyaltyOtherActivityType.LoyaltyOtherActivityTypeName | |
SourceDataAreaIdCompany (legal entity) of the source record. | StringDataAreaId | No | Yes | virtual |
Foreign keys (8)
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.
FromActivityAmountCurrency→Currency.CurrencyCode(key of Currency)Many RetailLoyaltyEarnSchemeLine records → zero or one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
FromActivityRetailGroupMemberLine→RetailGroupMemberLine.RecId(key of RetailGroupMemberLine)Many RetailLoyaltyEarnSchemeLine records → zero or one RetailGroupMemberLine record
RetailGroupMemberLine details: see RetailSpecialCategoryMemberEntity
LoyaltyScheme→RetailLoyaltyScheme.RecId(key of RetailLoyaltyScheme)Many RetailLoyaltyEarnSchemeLine records → exactly one RetailLoyaltyScheme record
RetailLoyaltyScheme details: see RetailLoyaltySchemeEntity, RetailLoyaltyRedeemSchemeLineEntity, RetailLoyaltySchemeChannelEntity
LoyaltyTier→RetailLoyaltyTier.RecId(key of RetailLoyaltyTier)Many RetailLoyaltyEarnSchemeLine records → exactly one RetailLoyaltyTier record
RetailLoyaltyTier details: see RetailLoyaltyTierEntity, RetailLoyaltyCardRewardPointTransactionEntity, RetailLoyaltyCardRewardPointTransactionV2Entity
ToRewardPoint→RetailLoyaltyRewardPoint.RecId(key of RetailLoyaltyRewardPoint)Many RetailLoyaltyEarnSchemeLine records → exactly one RetailLoyaltyRewardPoint record
RetailLoyaltyRewardPoint details: see RetailLoyaltyRewardPointEntity, RetailLoyaltyCardRewardPointAdjustmentEntity, RetailLoyaltyCardRewardPointTransactionEntity
RetailLoyaltyTier_Affiliation→RetailAffiliation.RecId(key of RetailAffiliation)Many RetailLoyaltyTier records → exactly one RetailAffiliation record
RetailAffiliation details: see RetailLoyaltyCardTierEntity, RetailLoyaltyCardTierV2Entity, RetailAffiliationEntity
RetailAffiliationId→RetailAffiliation.RecId(key of RetailAffiliation)Many RetailLoyaltyEarnSchemeLine records → exactly one RetailAffiliation record
RetailAffiliation details: see RetailLoyaltyCardTierEntity, RetailLoyaltyCardTierV2Entity, RetailAffiliationEntity
RetailFromOtherActivityTypeId→RetailLoyaltyOtherActivityType.RecId(key of RetailLoyaltyOtherActivityType)Many RetailLoyaltyEarnSchemeLine records → zero or one RetailLoyaltyOtherActivityType record
RetailLoyaltyOtherActivityType details: see RetailLoyaltyOtherActivityTypeEntity, RetailLoyaltyCardRewardPointTransactionEntity, RetailLoyaltyCardRewardPointTransactionV2Entity
Need help with RetailLoyaltyEarnSchemeLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.