Table
RetailLoyaltyCardRewardPointTrans
Loyalty transaction
Holds loyalty reward point transactions for loyalty cards, such as earning, redeeming, returning and adjusting points. Each row can link to the card, program, tier, customer, store, register and the source retail or sales order transaction. It also stores dates, remaining points and the transaction type.
- Table name
RetailLoyaltyCardRewardPointTrans- Module
Commerce customers- Table group
Transaction- Table type
Regular- Data per company
No- Configuration key
Retail- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (39)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AdjustmentIdThe ID of the loyalty adjustment that created this entry, if any. | String (44)RetailLoyaltyAdjustmentId | No | RetailLoyaltyCardRewardPointAdjustment.AdjustmentId | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity |
AffiliationPoints to the loyalty program of the entry. | Int64RefRecId | No | RetailAffiliation.RecId | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity |
CardNumberThe number of the loyalty card the entry belongs to. | String (30)RetailLoyaltyCardNumber | No | RetailLoyaltyCard.CardNumber | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity |
CardTenderTypeThe card type, such as As card tender, As contact tender, No tender or Blocked. | EnumRetailLoyaltyTenderTypeRetailLoyaltyTenderTypeBase (enum) | No | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity | |
ChannelPoints to the retail channel where the entry arose. | Int64RefRecId | No | RetailChannelTable.RecId | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CustAccountThe customer account linked to the entry. | String (20)CustAccount | No | CustTable.AccountNum | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity |
CustAccountDataAreaIdThe company that the linked customer account belongs to. | StringDataAreaId | No | CustTable.dataAreaId | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity |
EntryDateThe date the entry was made. | DateRetailLoyaltyRewardPointEntryDate | No | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity | |
EntryTimeThe time of day the entry was made. | TimeRetailLoyaltyRewardPointEntryTime | No | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity | |
EntryTypeThe kind of entry: Earn, Redeem, Return earned, Adjust or Refund. | EnumRetailLoyaltyRewardPointEntryType (enum) | No | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity | |
ExpirationDateThe date the reward points expire. | DateRetailLoyaltyRewardPointExpirationDate | No | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity | |
LoyaltyOtherActivityTypeIdPoints to the other activity type linked to the entry. | Int64RetailLoyaltyOtherActivityTypeRefRecId | No | RetailLoyaltyOtherActivityType.RecId | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity |
LoyaltyTierPoints to the loyalty tier linked to the entry. | Int64RefRecId | No | RetailLoyaltyTier.RecId | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity |
LoyaltyTransactionTypeThe source of the entry: Retail transaction, Sales order, Loyalty adjustment or Non transactional activity. | EnumRetailLoyaltyTransactionType (enum) | Yes | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity | |
loyaltyTransDataAreaIdThe company of the linked retail transaction records. | StringDataAreaId | No | RetailTransactionLoyaltyRewardPointTrans.dataAreaIdRetailTransactionSalesTrans.DataAreaIdRetailTransactionTable.dataAreaIdSalesTable.dataAreaId | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity |
LoyaltyTransLineNumThe line number of the linked loyalty reward point transaction. | RealLineNum | No | RetailTransactionLoyaltyRewardPointTrans.LineNum | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity |
MCRPaymRecIdPoints to the customer payment record linked to the entry. | Int64MCRCustPaymTableRecID | No | MCRCustPaymTable.RecId | None |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
NonTransactionalActivityIdThe ID of the linked non-transactional loyalty activity. | String (30)RetailLoyaltyNonTransactionalActivityId | No | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ReceiptIdThe receipt number linked to the entry. | String (18)RetailReceiptId | No | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity | |
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 | |
RemainingThe amount or quantity of points still remaining for the entry. | RealRetailLoyaltyRewardPointRemaining | No | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity | |
RetailTransactionSalesTransLineNumThe line number of the linked retail sales transaction. | RealLineNumOptional | No | RetailTransactionSalesTrans.lineNum | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity |
RewardPointPoints to the reward point type used by the entry. | Int64RefRecId | No | RetailLoyaltyRewardPoint.RecId | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity |
RewardPointAmountQtyThe number of reward points in the entry. | RealRetailLoyaltyRewardPointAmountQty | No | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity | |
SalesIdThe sales order linked to the entry. | String (20)SalesIdBase | No | SalesTable.SalesId | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity |
SalesLineLineNumThe line number of the linked sales order line. | RealLineNumOptional | No | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity | |
StaffIdThe ID of the operator who handled the transaction. | String (25)RetailStaffId | No | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity | |
StartDateThe date the reward points start to be valid. | DateRetailLoyaltyRewardPointStartDate | No | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity | |
storeIdThe number of the store where the transaction took place. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | RetailLoyaltyCardRewardPointTransactionV2Entity |
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 | |
terminalIdThe number of the POS register used for the transaction. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity |
transactionIdThe number of the retail transaction linked to the entry. | String (44)RetailTransactionId | No | RetailTransactionLoyaltyRewardPointTrans.transactionIdRetailTransactionSalesTrans.transactionIdRetailTransactionTable.transactionId | RetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity |
Indexes (13)
AffiliationIdxNot unique.
CardRewardExpirationIdxCardNumber,RewardPoint,ExpirationDate,RemainingNot unique.
TransactionLineIdxChannel,storeId,terminalId,transactionId,loyaltyTransDataAreaId,LoyaltyTransLineNum,SalesId,AdjustmentId,CardNumber,NonTransactionalActivityId,EntryDate,EntryTimeUnique.
ChannelLoyaltyTransUpdateIdxChannel,transactionId,LoyaltyTransactionType,loyaltyTransDataAreaId,terminalId,EntryTypeNot unique.
RetailLoyaltyCardRewardPointTransIdxCardNumber,RewardPoint,EntryDate,EntryType,RewardPointAmountQtyNot unique.
RetailLoyaltyCardRewardPointIdxCardNumber,RewardPoint,RemainingNot unique.
TransactionIdSalesIdIdxTransactionId,SalesId,SalesLineLineNumNot unique.
RewardPointAffiliationIdxNot unique.
RetailLoyaltyCardRewardPointStartDateIdxCardNumber,RewardPoint,StartDate,Remaining,EntryType,ExpirationDateNot unique.
TransactionIdSalesTransLineNumIdxtransactionId,RetailTransactionSalesTransLineNumNot unique.
SalesIdSalesLineLineNumIdxNot unique.
RetailLoyaltyCardRewardPointRewardPointIdxRewardPoint,StartDate,EntryType,ExpirationDate,RemainingNot unique.
MCRPaymRecIdIdxNot unique.
Relations (16)
Each relation joins RetailLoyaltyCardRewardPointTrans to another table on the fields shown.
CustTable→CustTableJoin on
CustAccountDataAreaId = CustTable.dataAreaId,CustAccount = CustTable.AccountNumMany RetailLoyaltyCardRewardPointTrans records → zero or one CustTable record
RetailAffiliation→RetailAffiliationJoin on
Affiliation = RetailAffiliation.RecIdMany RetailLoyaltyCardRewardPointTrans records → zero or one RetailAffiliation record
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailLoyaltyCardRewardPointTrans records → zero or one RetailChannelTable record
RetailLoyaltyCard→RetailLoyaltyCardJoin on
CardNumber = RetailLoyaltyCard.CardNumberMany RetailLoyaltyCardRewardPointTrans records → zero or one RetailLoyaltyCard record
RetailLoyaltyCardRewardPointAdjustment→RetailLoyaltyCardRewardPointAdjustmentJoin on
AdjustmentId = RetailLoyaltyCardRewardPointAdjustment.AdjustmentIdMany RetailLoyaltyCardRewardPointTrans records → zero or one RetailLoyaltyCardRewardPointAdjustment record
RetailLoyaltyRewardPoint→RetailLoyaltyRewardPointJoin on
RewardPoint = RetailLoyaltyRewardPoint.RecIdMany RetailLoyaltyCardRewardPointTrans records → zero or one RetailLoyaltyRewardPoint record
RetailLoyaltyTier→RetailLoyaltyTierJoin on
LoyaltyTier = RetailLoyaltyTier.RecIdMany RetailLoyaltyCardRewardPointTrans records → zero or one RetailLoyaltyTier record
RetailStoreTable→RetailStoreTableJoin on
storeId = RetailStoreTable.StoreNumberMany RetailLoyaltyCardRewardPointTrans records → zero or one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
terminalId = RetailTerminalTable.terminalIdMany RetailLoyaltyCardRewardPointTrans records → zero or one RetailTerminalTable record
RetailTransactionLoyaltyRewardPointTrans→RetailTransactionLoyaltyRewardPointTransJoin on
loyaltyTransDataAreaId = RetailTransactionLoyaltyRewardPointTrans.dataAreaId,transactionId = RetailTransactionLoyaltyRewardPointTrans.transactionId,terminalId = RetailTransactionLoyaltyRewardPointTrans.terminalId,storeId = RetailTransactionLoyaltyRewardPointTrans.storeId,LoyaltyTransLineNum = RetailTransactionLoyaltyRewardPointTrans.LineNum,Channel = RetailTransactionLoyaltyRewardPointTrans.ChannelZero or one RetailLoyaltyCardRewardPointTrans record → zero or one RetailTransactionLoyaltyRewardPointTrans record
RetailTransactionTable→RetailTransactionTableJoin on
loyaltyTransDataAreaId = RetailTransactionTable.dataAreaId,Channel = RetailTransactionTable.Channel,transactionId = RetailTransactionTable.transactionId,terminalId = RetailTransactionTable.terminal,storeId = RetailTransactionTable.storeZero or one RetailLoyaltyCardRewardPointTrans record → zero or one RetailTransactionTable record
SalesTable→SalesTableJoin on
loyaltyTransDataAreaId = SalesTable.dataAreaId,SalesId = SalesTable.SalesIdMany RetailLoyaltyCardRewardPointTrans records → zero or one SalesTable record
RetailTransactionSalesTrans→RetailTransactionSalesTransJoin on
loyaltyTransDataAreaId = RetailTransactionSalesTrans.DataAreaId,Channel = RetailTransactionSalesTrans.Channel,storeId = RetailTransactionSalesTrans.store,terminalId = RetailTransactionSalesTrans.terminalId,transactionId = RetailTransactionSalesTrans.transactionId,RetailTransactionSalesTransLineNum = RetailTransactionSalesTrans.lineNumMany RetailLoyaltyCardRewardPointTrans records → zero or one RetailTransactionSalesTrans record
SalesLine→SalesLineJoin on
loyaltyTransDataAreaId = SalesLine.DataAreaId,SalesId = SalesLine.SalesId,SalesLineLineNum = SalesLine.LineNumMany RetailLoyaltyCardRewardPointTrans records → zero or one SalesLine record
RetailLoyaltyOtherActivityType→RetailLoyaltyOtherActivityTypeJoin on
LoyaltyOtherActivityTypeId = RetailLoyaltyOtherActivityType.RecIdMany RetailLoyaltyCardRewardPointTrans records → zero or one RetailLoyaltyOtherActivityType record
MCRCustPaymTable→MCRCustPaymTableJoin on
MCRPaymRecId = MCRCustPaymTable.RecIdMany RetailLoyaltyCardRewardPointTrans records → zero or one MCRCustPaymTable record
Get this data out
Tables are not exposed directly. These public entities read from RetailLoyaltyCardRewardPointTrans; use one of them in Power BI, Power Platform or a data management project.
RetailLoyaltyCardRewardPointTransactionV2Entity· 29 fields from this tableRetailLoyaltyCardRewardPointTransactionEntity· 28 fields from this table
Need help with RetailLoyaltyCardRewardPointTrans in a report, an integration or a migration? Talk to Dr Dynamics.