Data entity
RetailLoyaltyRedeemSchemeLineEntity
Holds the lines of a loyalty scheme that set how reward points are redeemed. Each line is keyed by scheme ID and line number. It has reward points, currency, reward amount or quantity, redemption type, tier and a start and end date. Lines can be limited by item, product variant dimensions or product category.
- Entity name
RetailLoyaltyRedeemSchemeLineEntity- Public entity name
RetailLoyaltyRedeemSchemeLine- OData collection
RetailLoyaltyRedeemSchemeLines- Category
Not set- Module
Commerce customers- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
LoyaltySchemeId, LineNumber- Staging table
RetailLoyaltyRedeemSchemeLineStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/RetailLoyaltyRedeemSchemeLines- Dataverse virtual table
mserp_retailloyaltyredeemschemelineentity. 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
RetailLoyaltyRedeemSchemeLine· rootRetailLoyaltyScheme· InnerJoin toRetailLoyaltyRedeemSchemeLine· read-onlyRetailLoyaltyTier· OuterJoin toRetailLoyaltyRedeemSchemeLine· read-onlyRetailAffiliation· OuterJoin toRetailLoyaltyTier· read-onlyRetailLoyaltyRewardPoint· InnerJoin toRetailLoyaltyRedeemSchemeLine· read-onlyRetailAffiliationName(tableRetailAffiliation) · OuterJoin toRetailLoyaltyRedeemSchemeLine· read-only
Fields (26)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
FromRewardPointPoints to the reward point type that is redeemed. | Int64RefRecId | No | No (private) | RetailLoyaltyRewardPoint.RecId | RetailLoyaltyRedeemSchemeLine.FromRewardPoint |
FromRewardPointAmountQtyThe number of reward points needed for the redemption. | RealRetailLoyaltyRewardPointAmountQty | Yes | Yes | RetailLoyaltyRedeemSchemeLine.FromRewardPointAmountQty | |
LoyaltySchemePoints to the loyalty scheme that the line belongs to. | Int64RefRecId | No | No (private) | RetailLoyaltyScheme.RecId | RetailLoyaltyRedeemSchemeLine.LoyaltyScheme |
LoyaltyTierPoints to the loyalty tier the line applies to. | Int64RefRecId | No | No (private) | RetailLoyaltyTier.RecId | RetailLoyaltyRedeemSchemeLine.LoyaltyTier |
ToRetailGroupMemberLinePoints to the retail group member line that the reward applies to. | Int64RefRecId | No | No (private) | RetailGroupMemberLine.RecId | RetailLoyaltyRedeemSchemeLine.ToRetailGroupMemberLine |
ToRewardAmountCurrencyThe currency of the reward amount. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | RetailLoyaltyRedeemSchemeLine.ToRewardAmountCurrency |
ToRewardAmountQtyThe reward amount or quantity given for the points. | RealRetailLoyaltyRewardAmountQty | No | Yes | RetailLoyaltyRedeemSchemeLine.ToRewardAmountQty | |
ToRewardTypeThe type of redemption: Payment by amount, Payment by quantity or Loyalty points discount. | Enum
| Yes | Yes | RetailLoyaltyRedeemSchemeLine.ToRewardType | |
ValidFromThe date the line starts to apply. | DateValidFromDate | No | Yes | RetailLoyaltyRedeemSchemeLine.ValidFrom | |
ValidToThe date the line stops applying. | DateValidToDate | No | Yes | RetailLoyaltyRedeemSchemeLine.ValidTo | |
LineNumberThe number of the line within the scheme. | RealLineNum | Yes | Yes | RetailLoyaltyRedeemSchemeLine.LineNum | |
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 redeem line applies to. | String (20)ItemId | No | Yes | virtual | |
ColorProduct colour the redeem line applies to. | StringEcoResColorName | No | Yes | virtual | |
SizeProduct size the redeem line applies to. | StringEcoResSizeName | No | Yes | virtual | |
StyleProduct style the redeem line applies to. | StringEcoResStyleName | No | Yes | virtual | |
ConfigIdProduct configuration the redeem line applies to. | String (50)EcoResConfigurationName | No | Yes | virtual | |
CategoryHierarchyNameName of the product category hierarchy the redeem line refers to. | String (128)EcoResCategoryHierarchyName | No | Yes | virtual | |
CategoryNameName of the product category the redeem line refers to. | String (254)EcoResCategoryName | No | Yes | virtual | |
FromRewardPointIdIdentifier of the reward point. It is the key. | String (64)RetailLoyaltyRewardPointID | Yes | Yes | RetailLoyaltyRewardPoint.RewardPointId | |
RetailAffiliationIdPoints to the loyalty program of the line. | Int64RetailAffiliationId | No | No (private) | RetailAffiliation.RecId | RetailLoyaltyRedeemSchemeLine.RetailAffiliationId |
AffiliationNameName of the affiliation or loyalty program. It is the key. | String (64)RetailAffiliationName | Yes | Yes | RetailAffiliation.Name | |
SourceDataAreaIdCompany (legal entity) of the source record. | StringDataAreaId | No | Yes | virtual |
Foreign keys (7)
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.
FromRewardPoint→RetailLoyaltyRewardPoint.RecId(key of RetailLoyaltyRewardPoint)Relation also requires RetailLoyaltyRewardPoint.Redeemable = 1.
Many RetailLoyaltyRedeemSchemeLine records → exactly one RetailLoyaltyRewardPoint record
RetailLoyaltyRewardPoint details: see RetailLoyaltyRewardPointEntity, RetailLoyaltyCardRewardPointAdjustmentEntity, RetailLoyaltyCardRewardPointTransactionEntity
LoyaltyScheme→RetailLoyaltyScheme.RecId(key of RetailLoyaltyScheme)Many RetailLoyaltyRedeemSchemeLine records → exactly one RetailLoyaltyScheme record
RetailLoyaltyScheme details: see RetailLoyaltySchemeEntity, RetailLoyaltyEarnSchemeLineEntity, RetailLoyaltySchemeChannelEntity
LoyaltyTier→RetailLoyaltyTier.RecId(key of RetailLoyaltyTier)Many RetailLoyaltyRedeemSchemeLine records → exactly one RetailLoyaltyTier record
RetailLoyaltyTier details: see RetailLoyaltyTierEntity, RetailLoyaltyCardRewardPointTransactionEntity, RetailLoyaltyCardRewardPointTransactionV2Entity
ToRetailGroupMemberLine→RetailGroupMemberLine.RecId(key of RetailGroupMemberLine)Many RetailLoyaltyRedeemSchemeLine records → zero or one RetailGroupMemberLine record
RetailGroupMemberLine details: see RetailSpecialCategoryMemberEntity
ToRewardAmountCurrency→Currency.CurrencyCode(key of Currency)Many RetailLoyaltyRedeemSchemeLine records → zero or one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
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 RetailLoyaltyRedeemSchemeLine records → exactly one RetailAffiliation record
RetailAffiliation details: see RetailLoyaltyCardTierEntity, RetailLoyaltyCardTierV2Entity, RetailAffiliationEntity
Need help with RetailLoyaltyRedeemSchemeLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.