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 · root
  • RetailLoyaltyScheme · InnerJoin to RetailLoyaltyRedeemSchemeLine · read-only
  • RetailLoyaltyTier · OuterJoin to RetailLoyaltyRedeemSchemeLine · read-only
  • RetailAffiliation · OuterJoin to RetailLoyaltyTier · read-only
  • RetailLoyaltyRewardPoint · InnerJoin to RetailLoyaltyRedeemSchemeLine · read-only
  • RetailAffiliationName (table RetailAffiliation) · OuterJoin to RetailLoyaltyRedeemSchemeLine · read-only

Fields (26)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
FromRewardPointPoints to the reward point type that is redeemed.Int64
RefRecId
NoNo (private)RetailLoyaltyRewardPoint.RecIdRetailLoyaltyRedeemSchemeLine.FromRewardPoint
FromRewardPointAmountQtyThe number of reward points needed for the redemption.Real
RetailLoyaltyRewardPointAmountQty
YesYesRetailLoyaltyRedeemSchemeLine.FromRewardPointAmountQty
LoyaltySchemePoints to the loyalty scheme that the line belongs to.Int64
RefRecId
NoNo (private)RetailLoyaltyScheme.RecIdRetailLoyaltyRedeemSchemeLine.LoyaltyScheme
LoyaltyTierPoints to the loyalty tier the line applies to.Int64
RefRecId
NoNo (private)RetailLoyaltyTier.RecIdRetailLoyaltyRedeemSchemeLine.LoyaltyTier
ToRetailGroupMemberLinePoints to the retail group member line that the reward applies to.Int64
RefRecId
NoNo (private)RetailGroupMemberLine.RecIdRetailLoyaltyRedeemSchemeLine.ToRetailGroupMemberLine
ToRewardAmountCurrencyThe currency of the reward amount.String (3)
CurrencyCode
NoYesCurrency.CurrencyCodeRetailLoyaltyRedeemSchemeLine.ToRewardAmountCurrency
ToRewardAmountQtyThe reward amount or quantity given for the points.Real
RetailLoyaltyRewardAmountQty
NoYesRetailLoyaltyRedeemSchemeLine.ToRewardAmountQty
ToRewardTypeThe type of redemption: Payment by amount, Payment by quantity or Loyalty points discount.Enum
RetailLoyaltyRewardType
  • PaymentByAmount 1
  • PaymentByQuantity 2
  • Discount_RU 3
YesYesRetailLoyaltyRedeemSchemeLine.ToRewardType
ValidFromThe date the line starts to apply.Date
ValidFromDate
NoYesRetailLoyaltyRedeemSchemeLine.ValidFrom
ValidToThe date the line stops applying.Date
ValidToDate
NoYesRetailLoyaltyRedeemSchemeLine.ValidTo
LineNumberThe number of the line within the scheme.Real
LineNum
YesYesRetailLoyaltyRedeemSchemeLine.LineNum
LoyaltySchemeIdUnique ID of the loyalty scheme.String
RetailLoyaltySchemeId
YesYesRetailLoyaltyScheme.LoyaltySchemeId
RetailLoyaltyTier_AffiliationRecord ID of the loyalty program the tier belongs to. It points to a loyalty program.Int64
RefRecId
NoNo (private)RetailAffiliation.RecIdRetailLoyaltyTier.Affiliation
LoyaltyTierIdIdentifier or name of the tier.String (64)
RetailAffiliationTierId
NoYesRetailLoyaltyTier.TierId
LoyaltyProgramNameName of the affiliation or loyalty program. It is the key.String (64)
RetailAffiliationName
NoYesRetailAffiliation.Name
ItemIdItem number the redeem line applies to.String (20)
ItemId
NoYesvirtual
ColorProduct colour the redeem line applies to.String
EcoResColorName
NoYesvirtual
SizeProduct size the redeem line applies to.String
EcoResSizeName
NoYesvirtual
StyleProduct style the redeem line applies to.String
EcoResStyleName
NoYesvirtual
ConfigIdProduct configuration the redeem line applies to.String (50)
EcoResConfigurationName
NoYesvirtual
CategoryHierarchyNameName of the product category hierarchy the redeem line refers to.String (128)
EcoResCategoryHierarchyName
NoYesvirtual
CategoryNameName of the product category the redeem line refers to.String (254)
EcoResCategoryName
NoYesvirtual
FromRewardPointIdIdentifier of the reward point. It is the key.String (64)
RetailLoyaltyRewardPointID
YesYesRetailLoyaltyRewardPoint.RewardPointId
RetailAffiliationIdPoints to the loyalty program of the line.Int64
RetailAffiliationId
NoNo (private)RetailAffiliation.RecIdRetailLoyaltyRedeemSchemeLine.RetailAffiliationId
AffiliationNameName of the affiliation or loyalty program. It is the key.String (64)
RetailAffiliationName
YesYesRetailAffiliation.Name
SourceDataAreaIdCompany (legal entity) of the source record.String
DataAreaId
NoYesvirtual

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.

Need help with RetailLoyaltyRedeemSchemeLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk