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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
FromRewardPointPoints to the reward point type that is redeemed. | Int64RefRecId | Yes | RetailLoyaltyRewardPoint.RecId | RetailLoyaltyRedeemSchemeLineEntity |
FromRewardPointAmountQtyThe number of reward points needed for the redemption. | RealRetailLoyaltyRewardPointAmountQty | Yes | RetailLoyaltyRedeemSchemeLineEntity | |
LineNumThe number of the line within the scheme. | RealLineNum | No | RetailLoyaltyRedeemSchemeLineEntity | |
LoyaltySchemePoints to the loyalty scheme that the line belongs to. | Int64RefRecId | Yes | RetailLoyaltyScheme.RecId | RetailLoyaltyRedeemSchemeLineEntity |
LoyaltyTierPoints to the loyalty tier the line applies to. | Int64RefRecId | No | RetailLoyaltyTier.RecId | RetailLoyaltyRedeemSchemeLineEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RetailAffiliationIdPoints to the loyalty program of the line. | Int64RetailAffiliationId | No | RetailAffiliation.RecId | RetailLoyaltyRedeemSchemeLineEntity |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
ToRetailGroupMemberLinePoints to the retail group member line that the reward applies to. | Int64RefRecId | No | RetailGroupMemberLine.RecId | RetailLoyaltyRedeemSchemeLineEntity |
ToRewardAmountCurrencyThe currency of the reward amount. | String (3)CurrencyCode | No | Currency.CurrencyCode | RetailLoyaltyRedeemSchemeLineEntity |
ToRewardAmountQtyThe reward amount or quantity given for the points. | RealRetailLoyaltyRewardAmountQty | No | RetailLoyaltyRedeemSchemeLineEntity | |
ToRewardTypeThe type of redemption: Payment by amount, Payment by quantity or Loyalty points discount. | EnumRetailLoyaltyRewardType (enum) | Yes | RetailLoyaltyRedeemSchemeLineEntity | |
ValidFromThe date the line starts to apply. | DateValidFromDate | No | RetailLoyaltyRedeemSchemeLineEntity | |
ValidToThe date the line stops applying. | DateValidToDate | No | RetailLoyaltyRedeemSchemeLineEntity |
Indexes (2)
PaymentRewardIdxLoyaltyScheme,ToRewardType,LoyaltyTier,FromRewardPointNot unique.
SchemeLineIdxUnique.
Relations (6)
Each relation joins RetailLoyaltyRedeemSchemeLine to another table on the fields shown.
RetailGroupMemberLine→RetailGroupMemberLineJoin on
ToRetailGroupMemberLine = RetailGroupMemberLine.RecIdMany RetailLoyaltyRedeemSchemeLine records → zero or one RetailGroupMemberLine record
RetailLoyaltyRewardPoint→RetailLoyaltyRewardPointJoin on
RetailLoyaltyRewardPoint.Redeemable = 1,FromRewardPoint = RetailLoyaltyRewardPoint.RecIdMany RetailLoyaltyRedeemSchemeLine records → exactly one RetailLoyaltyRewardPoint record
RetailLoyaltyScheme→RetailLoyaltySchemeJoin on
LoyaltyScheme = RetailLoyaltyScheme.RecIdMany RetailLoyaltyRedeemSchemeLine records → exactly one RetailLoyaltyScheme record
RetailLoyaltyTier→RetailLoyaltyTierJoin on
LoyaltyTier = RetailLoyaltyTier.RecIdMany RetailLoyaltyRedeemSchemeLine records → exactly one RetailLoyaltyTier record
ToRewardAmountCurrency→CurrencyJoin on
ToRewardAmountCurrency = Currency.CurrencyCodeMany RetailLoyaltyRedeemSchemeLine records → zero or one Currency record
RetailAffiliation→RetailAffiliationJoin on
RetailAffiliationId = RetailAffiliation.RecIdMany 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.
RetailLoyaltyRedeemSchemeLineEntity· 12 fields from this table
Need help with RetailLoyaltyRedeemSchemeLine in a report, an integration or a migration? Talk to Dr Dynamics.