Table

RetailLoyaltyRedeemSchemeLine

Retail loyalty redeem line

Holds the lines of a loyalty scheme that define how reward points are redeemed. Each line sets the points needed and the reward given, such as a payment by amount or quantity, or a loyalty points discount. Lines link to a scheme, tier, program and reward point type, and have a validity period.

Table name
RetailLoyaltyRedeemSchemeLine
Module
Commerce customers
Table group
Main
Table type
Regular
Data per company
No
Configuration key
Retail
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (17)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
FromRewardPointPoints to the reward point type that is redeemed.Int64
RefRecId
YesRetailLoyaltyRewardPoint.RecIdRetailLoyaltyRedeemSchemeLineEntity
FromRewardPointAmountQtyThe number of reward points needed for the redemption.Real
RetailLoyaltyRewardPointAmountQty
YesRetailLoyaltyRedeemSchemeLineEntity
LineNumThe number of the line within the scheme.Real
LineNum
NoRetailLoyaltyRedeemSchemeLineEntity
LoyaltySchemePoints to the loyalty scheme that the line belongs to.Int64
RefRecId
YesRetailLoyaltyScheme.RecIdRetailLoyaltyRedeemSchemeLineEntity
LoyaltyTierPoints to the loyalty tier the line applies to.Int64
RefRecId
NoRetailLoyaltyTier.RecIdRetailLoyaltyRedeemSchemeLineEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RetailAffiliationIdPoints to the loyalty program of the line.Int64
RetailAffiliationId
NoRetailAffiliation.RecIdRetailLoyaltyRedeemSchemeLineEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
ToRetailGroupMemberLinePoints to the retail group member line that the reward applies to.Int64
RefRecId
NoRetailGroupMemberLine.RecIdRetailLoyaltyRedeemSchemeLineEntity
ToRewardAmountCurrencyThe currency of the reward amount.String (3)
CurrencyCode
NoCurrency.CurrencyCodeRetailLoyaltyRedeemSchemeLineEntity
ToRewardAmountQtyThe reward amount or quantity given for the points.Real
RetailLoyaltyRewardAmountQty
NoRetailLoyaltyRedeemSchemeLineEntity
ToRewardTypeThe type of redemption: Payment by amount, Payment by quantity or Loyalty points discount.Enum
RetailLoyaltyRewardType (enum)
YesRetailLoyaltyRedeemSchemeLineEntity
ValidFromThe date the line starts to apply.Date
ValidFromDate
NoRetailLoyaltyRedeemSchemeLineEntity
ValidToThe date the line stops applying.Date
ValidToDate
NoRetailLoyaltyRedeemSchemeLineEntity

Indexes (2)

Relations (6)

Each relation joins RetailLoyaltyRedeemSchemeLine to another table on the fields shown.

  • RetailGroupMemberLine → RetailGroupMemberLine

    Join on ToRetailGroupMemberLine = RetailGroupMemberLine.RecId

    Many RetailLoyaltyRedeemSchemeLine records → zero or one RetailGroupMemberLine record

  • RetailLoyaltyRewardPoint → RetailLoyaltyRewardPoint

    Join on RetailLoyaltyRewardPoint.Redeemable = 1, FromRewardPoint = RetailLoyaltyRewardPoint.RecId

    Many RetailLoyaltyRedeemSchemeLine records → exactly one RetailLoyaltyRewardPoint record

  • RetailLoyaltyScheme → RetailLoyaltyScheme

    Join on LoyaltyScheme = RetailLoyaltyScheme.RecId

    Many RetailLoyaltyRedeemSchemeLine records → exactly one RetailLoyaltyScheme record

  • RetailLoyaltyTier → RetailLoyaltyTier

    Join on LoyaltyTier = RetailLoyaltyTier.RecId

    Many RetailLoyaltyRedeemSchemeLine records → exactly one RetailLoyaltyTier record

  • ToRewardAmountCurrency → Currency

    Join on ToRewardAmountCurrency = Currency.CurrencyCode

    Many RetailLoyaltyRedeemSchemeLine records → zero or one Currency record

  • RetailAffiliation → RetailAffiliation

    Join on RetailAffiliationId = RetailAffiliation.RecId

    Many RetailLoyaltyRedeemSchemeLine records → exactly one RetailAffiliation record

Get this data out

Tables are not exposed directly. These public entities read from RetailLoyaltyRedeemSchemeLine; use one of them in Power BI, Power Platform or a data management project.

Need help with RetailLoyaltyRedeemSchemeLine in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk