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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AdjustmentIdThe ID of the loyalty adjustment that created this entry, if any.String (44)
RetailLoyaltyAdjustmentId
NoRetailLoyaltyCardRewardPointAdjustment.AdjustmentIdRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
AffiliationPoints to the loyalty program of the entry.Int64
RefRecId
NoRetailAffiliation.RecIdRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
CardNumberThe number of the loyalty card the entry belongs to.String (30)
RetailLoyaltyCardNumber
NoRetailLoyaltyCard.CardNumberRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
CardTenderTypeThe card type, such as As card tender, As contact tender, No tender or Blocked.Enum
RetailLoyaltyTenderType
RetailLoyaltyTenderTypeBase (enum)
NoRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
ChannelPoints to the retail channel where the entry arose.Int64
RefRecId
NoRetailChannelTable.RecIdRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CustAccountThe customer account linked to the entry.String (20)
CustAccount
NoCustTable.AccountNumRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
CustAccountDataAreaIdThe company that the linked customer account belongs to.String
DataAreaId
NoCustTable.dataAreaIdRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
EntryDateThe date the entry was made.Date
RetailLoyaltyRewardPointEntryDate
NoRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
EntryTimeThe time of day the entry was made.Time
RetailLoyaltyRewardPointEntryTime
NoRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
EntryTypeThe kind of entry: Earn, Redeem, Return earned, Adjust or Refund.Enum
RetailLoyaltyRewardPointEntryType (enum)
NoRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
ExpirationDateThe date the reward points expire.Date
RetailLoyaltyRewardPointExpirationDate
NoRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
LoyaltyOtherActivityTypeIdPoints to the other activity type linked to the entry.Int64
RetailLoyaltyOtherActivityTypeRefRecId
NoRetailLoyaltyOtherActivityType.RecIdRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
LoyaltyTierPoints to the loyalty tier linked to the entry.Int64
RefRecId
NoRetailLoyaltyTier.RecIdRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
LoyaltyTransactionTypeThe source of the entry: Retail transaction, Sales order, Loyalty adjustment or Non transactional activity.Enum
RetailLoyaltyTransactionType (enum)
YesRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
loyaltyTransDataAreaIdThe company of the linked retail transaction records.String
DataAreaId
NoRetailTransactionLoyaltyRewardPointTrans.dataAreaIdRetailTransactionSalesTrans.DataAreaIdRetailTransactionTable.dataAreaIdSalesTable.dataAreaIdRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
LoyaltyTransLineNumThe line number of the linked loyalty reward point transaction.Real
LineNum
NoRetailTransactionLoyaltyRewardPointTrans.LineNumRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
MCRPaymRecIdPoints to the customer payment record linked to the entry.Int64
MCRCustPaymTableRecID
NoMCRCustPaymTable.RecIdNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NonTransactionalActivityIdThe ID of the linked non-transactional loyalty activity.String (30)
RetailLoyaltyNonTransactionalActivityId
NoRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ReceiptIdThe receipt number linked to the entry.String (18)
RetailReceiptId
NoRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
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
RemainingThe amount or quantity of points still remaining for the entry.Real
RetailLoyaltyRewardPointRemaining
NoRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
RetailTransactionSalesTransLineNumThe line number of the linked retail sales transaction.Real
LineNumOptional
NoRetailTransactionSalesTrans.lineNumRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
RewardPointPoints to the reward point type used by the entry.Int64
RefRecId
NoRetailLoyaltyRewardPoint.RecIdRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
RewardPointAmountQtyThe number of reward points in the entry.Real
RetailLoyaltyRewardPointAmountQty
NoRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
SalesIdThe sales order linked to the entry.String (20)
SalesIdBase
NoSalesTable.SalesIdRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
SalesLineLineNumThe line number of the linked sales order line.Real
LineNumOptional
NoRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
StaffIdThe ID of the operator who handled the transaction.String (25)
RetailStaffId
NoRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
StartDateThe date the reward points start to be valid.Date
RetailLoyaltyRewardPointStartDate
NoRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
storeIdThe number of the store where the transaction took place.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailLoyaltyCardRewardPointTransactionV2Entity
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
terminalIdThe number of the POS register used for the transaction.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity
transactionIdThe number of the retail transaction linked to the entry.String (44)
RetailTransactionId
NoRetailTransactionLoyaltyRewardPointTrans.transactionIdRetailTransactionSalesTrans.transactionIdRetailTransactionTable.transactionIdRetailLoyaltyCardRewardPointTransactionV2EntityRetailLoyaltyCardRewardPointTransactionEntity

Indexes (13)

Relations (16)

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

  • CustTable → CustTable

    Join on CustAccountDataAreaId = CustTable.dataAreaId, CustAccount = CustTable.AccountNum

    Many RetailLoyaltyCardRewardPointTrans records → zero or one CustTable record

  • RetailAffiliation → RetailAffiliation

    Join on Affiliation = RetailAffiliation.RecId

    Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailAffiliation record

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailChannelTable record

  • RetailLoyaltyCard → RetailLoyaltyCard

    Join on CardNumber = RetailLoyaltyCard.CardNumber

    Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailLoyaltyCard record

  • RetailLoyaltyCardRewardPointAdjustment → RetailLoyaltyCardRewardPointAdjustment

    Join on AdjustmentId = RetailLoyaltyCardRewardPointAdjustment.AdjustmentId

    Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailLoyaltyCardRewardPointAdjustment record

  • RetailLoyaltyRewardPoint → RetailLoyaltyRewardPoint

    Join on RewardPoint = RetailLoyaltyRewardPoint.RecId

    Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailLoyaltyRewardPoint record

  • RetailLoyaltyTier → RetailLoyaltyTier

    Join on LoyaltyTier = RetailLoyaltyTier.RecId

    Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailLoyaltyTier record

  • RetailStoreTable → RetailStoreTable

    Join on storeId = RetailStoreTable.StoreNumber

    Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on terminalId = RetailTerminalTable.terminalId

    Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailTerminalTable record

  • RetailTransactionLoyaltyRewardPointTrans → RetailTransactionLoyaltyRewardPointTrans

    Join on loyaltyTransDataAreaId = RetailTransactionLoyaltyRewardPointTrans.dataAreaId, transactionId = RetailTransactionLoyaltyRewardPointTrans.transactionId, terminalId = RetailTransactionLoyaltyRewardPointTrans.terminalId, storeId = RetailTransactionLoyaltyRewardPointTrans.storeId, LoyaltyTransLineNum = RetailTransactionLoyaltyRewardPointTrans.LineNum, Channel = RetailTransactionLoyaltyRewardPointTrans.Channel

    Zero or one RetailLoyaltyCardRewardPointTrans record → zero or one RetailTransactionLoyaltyRewardPointTrans record

  • RetailTransactionTable → RetailTransactionTable

    Join on loyaltyTransDataAreaId = RetailTransactionTable.dataAreaId, Channel = RetailTransactionTable.Channel, transactionId = RetailTransactionTable.transactionId, terminalId = RetailTransactionTable.terminal, storeId = RetailTransactionTable.store

    Zero or one RetailLoyaltyCardRewardPointTrans record → zero or one RetailTransactionTable record

  • SalesTable → SalesTable

    Join on loyaltyTransDataAreaId = SalesTable.dataAreaId, SalesId = SalesTable.SalesId

    Many RetailLoyaltyCardRewardPointTrans records → zero or one SalesTable record

  • RetailTransactionSalesTrans → RetailTransactionSalesTrans

    Join on loyaltyTransDataAreaId = RetailTransactionSalesTrans.DataAreaId, Channel = RetailTransactionSalesTrans.Channel, storeId = RetailTransactionSalesTrans.store, terminalId = RetailTransactionSalesTrans.terminalId, transactionId = RetailTransactionSalesTrans.transactionId, RetailTransactionSalesTransLineNum = RetailTransactionSalesTrans.lineNum

    Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailTransactionSalesTrans record

  • SalesLine → SalesLine

    Join on loyaltyTransDataAreaId = SalesLine.DataAreaId, SalesId = SalesLine.SalesId, SalesLineLineNum = SalesLine.LineNum

    Many RetailLoyaltyCardRewardPointTrans records → zero or one SalesLine record

  • RetailLoyaltyOtherActivityType → RetailLoyaltyOtherActivityType

    Join on LoyaltyOtherActivityTypeId = RetailLoyaltyOtherActivityType.RecId

    Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailLoyaltyOtherActivityType record

  • MCRCustPaymTable → MCRCustPaymTable

    Join on MCRPaymRecId = MCRCustPaymTable.RecId

    Many 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.

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

Email sales@drdynamics.co.uk