Table

RetailLoyaltyTierRule

Retail loyalty tier rules

Holds rules for a loyalty tier. Each rule refers to a tier and a reward point type. It includes a minimum number of issued points, an evaluation date interval, a setting to combine related cards, and upsell prompt settings.

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

Fields (12)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
LoyaltyTierPoints to the loyalty tier that the rule belongs to.Int64
RefRecId
YesRetailLoyaltyTier.RecIdRetailLoyaltyTierRuleEntity
MinValueMinimum number of issued points set in the rule.Real
RetailLoyaltyRewardPointAmountQty
NoRetailLoyaltyTierRuleEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PoolRelatedCardsYes/no setting for combining related loyalty cards.Enum
RetailLoyaltyPoolRelatedCards
NoYes (enum)
NoRetailLoyaltyTierRuleEntity
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
RewardPointPoints to the loyalty reward point that the rule uses.Int64
RefRecId
YesRetailLoyaltyRewardPoint.RecIdRetailLoyaltyTierRuleEntity
ShowUpsellPromptYes/no setting for showing a loyalty upsell prompt.Enum
NoYes (enum)
NoRetailLoyaltyTierRuleEntity
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
ThresholdThreshold value for the upsell prompt.Real
RetailLoyaltyTierRuleThreshold
NoRetailLoyaltyTierRuleEntity
ValidationDateIntervalCode of the date interval used to evaluate the rule.String
DateCode
YesRetailPeriodCode.CodeRetailLoyaltyTierRuleEntity

Indexes (1)

Relations (3)

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

  • RetailLoyaltyRewardPoint → RetailLoyaltyRewardPoint

    Join on RewardPoint = RetailLoyaltyRewardPoint.RecId

    Many RetailLoyaltyTierRule records → exactly one RetailLoyaltyRewardPoint record

  • RetailLoyaltyTier → RetailLoyaltyTier

    Join on LoyaltyTier = RetailLoyaltyTier.RecId

    Many RetailLoyaltyTierRule records → exactly one RetailLoyaltyTier record

  • RetailPeriodCode → RetailPeriodCode

    Join on ValidationDateInterval = RetailPeriodCode.Code

    Many RetailLoyaltyTierRule records → exactly one RetailPeriodCode record

Get this data out

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

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

Email sales@drdynamics.co.uk