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

Fields (28)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
FromActivityAmountCurrencyThe currency of the activity amount.String (3)
CurrencyCode
NoYesCurrency.CurrencyCodeRetailLoyaltyEarnSchemeLine.FromActivityAmountCurrency
FromActivityAmountQtyThe activity amount or quantity needed to earn points.Real
RetailLoyaltyActivityAmountQty
YesYesRetailLoyaltyEarnSchemeLine.FromActivityAmountQty
FromActivityRetailGroupMemberLinePoints to the retail group member line that the activity applies to.Int64
RefRecId
NoNo (private)RetailGroupMemberLine.RecIdRetailLoyaltyEarnSchemeLine.FromActivityRetailGroupMemberLine
FromActivityTypeThe kind of activity that earns points, such as Purchase products by amount, Purchase products by quantity, Sales transaction count or Other.Enum
RetailLoyaltyActivityType
  • PurchaseProductByAmount 1
  • PurchaseProductByQuantity 2
  • SalesTransactionCount 3
  • Other 4
YesYesRetailLoyaltyEarnSchemeLine.FromActivityType
LoyaltySchemePoints to the loyalty scheme that the line belongs to.Int64
RefRecId
NoNo (private)RetailLoyaltyScheme.RecIdRetailLoyaltyEarnSchemeLine.LoyaltyScheme
LoyaltyTierPoints to the loyalty tier the line applies to.Int64
RefRecId
NoNo (private)RetailLoyaltyTier.RecIdRetailLoyaltyEarnSchemeLine.LoyaltyTier
ToRewardPointPoints to the reward point type given by the line.Int64
RefRecId
NoNo (private)RetailLoyaltyRewardPoint.RecIdRetailLoyaltyEarnSchemeLine.ToRewardPoint
ToRewardPointAmountQtyThe number of reward points given.Real
RetailLoyaltyRewardPointAmountQty
YesYesRetailLoyaltyEarnSchemeLine.ToRewardPointAmountQty
ValidFromThe date the line starts to apply.Date
ValidFromDate
NoYesRetailLoyaltyEarnSchemeLine.ValidFrom
ValidToThe date the line stops applying.Date
ValidToDate
NoYesRetailLoyaltyEarnSchemeLine.ValidTo
LineNumberThe number of the line within the scheme.Real
LineNum
YesYesRetailLoyaltyEarnSchemeLine.LineNum
ToRewardPointIdIdentifier of the reward point. It is the key.String (64)
RetailLoyaltyRewardPointID
YesYesRetailLoyaltyRewardPoint.RewardPointId
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 earn line applies to.String (20)
ItemId
NoYesvirtual
ColorProduct colour the earn line applies to.String
EcoResColorName
NoYesvirtual
SizeProduct size the earn line applies to.String
EcoResSizeName
NoYesvirtual
StyleProduct style the earn line applies to.String
EcoResStyleName
NoYesvirtual
ConfigIdProduct configuration the earn line applies to.String (50)
EcoResConfigurationName
NoYesvirtual
CategoryHierarchyNameName of the product category hierarchy the earn line refers to.String (128)
EcoResCategoryHierarchyName
NoYesvirtual
CategoryNameName of the product category the earn line refers to.String (254)
EcoResCategoryName
NoYesvirtual
RetailAffiliationIdPoints to the loyalty program of the line.Int64
RetailAffiliationId
NoNo (private)RetailAffiliation.RecIdRetailLoyaltyEarnSchemeLine.RetailAffiliationId
AffiliationNameName of the affiliation or loyalty program. It is the key.String (64)
RetailAffiliationName
YesYesRetailAffiliation.Name
RetailFromOtherActivityTypeIdPoints to the other activity type, used when the activity type is Other.Int64
RetailLoyaltyOtherActivityTypeRefRecId
NoNo (private)RetailLoyaltyOtherActivityType.RecIdRetailLoyaltyEarnSchemeLine.RetailFromOtherActivityTypeId
RetailFromOtherActivityTypeThe name of the other activity type.String (50)
RetailLoyaltyOtherActivityTypeName
YesYesRetailLoyaltyOtherActivityType.LoyaltyOtherActivityTypeName
SourceDataAreaIdCompany (legal entity) of the source record.String
DataAreaId
NoYesvirtual

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.

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

Email sales@drdynamics.co.uk