Data entity
RetailLoyaltyCardRewardPointTransactionV2Entity
A second version of the loyalty transaction entity, built on the same loyalty transaction table. It holds reward point transactions per card, with sales order, terminal, receipt and activity details. Compared with the first version it adds store number, non-transactional activity ID and entry date and time to the key.
- Entity name
RetailLoyaltyCardRewardPointTransactionV2Entity- Public entity name
RetailLoyaltyCardRewardPointTransactionV2- OData collection
RetailLoyaltyCardRewardPointTransactionV2- Category
Not set- Module
Commerce customers- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
OperatingUnitNumber, storeId, Terminal, TransactionNumber, LoyaltyTransactionCompany, LoyaltyTransactionLineNumber, SalesOrderId, AdjustmentId, CardNumber, NonTransactionalActivityId, EntryDate, EntryTime- Staging table
RetailLoyaltyCardRewardPointTransactionV2Staging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/RetailLoyaltyCardRewardPointTransactionV2- Dataverse virtual table
mserp_retailloyaltycardrewardpointtransactionv2entity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
RetailLoyaltyCardRewardPointTrans· rootRetailAffiliation· OuterJoin toRetailLoyaltyCardRewardPointTrans· read-onlyRetailChannelTable· OuterJoin toRetailLoyaltyCardRewardPointTrans· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailMCRChannelTable· Derived toRetailChannelTableRetailOnlineChannelTable· Derived toRetailChannelTableRetailStoreTable· Derived toRetailChannelTableRetailDirectSalesChannel· Derived toRetailChannelTableRetailLoyaltyRewardPoint· OuterJoin toRetailLoyaltyCardRewardPointTrans· read-onlyRetailLoyaltyTier· OuterJoin toRetailLoyaltyCardRewardPointTrans· read-onlyRetailLoyaltyTierAffiliation(tableRetailAffiliation) · OuterJoin toRetailLoyaltyTier· read-onlyRetailLoyaltyOtherActivityType· OuterJoin toRetailLoyaltyCardRewardPointTrans· read-only
Fields (37)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AdjustmentIdThe ID of the loyalty adjustment that created this entry, if any. | String (44)RetailLoyaltyAdjustmentId | No | Yes | RetailLoyaltyCardRewardPointAdjustment.AdjustmentId | RetailLoyaltyCardRewardPointTrans.AdjustmentId |
LoyaltyProgramPoints to the loyalty program of the entry. | Int64RefRecId | No | No (private) | RetailAffiliation.RecId | RetailLoyaltyCardRewardPointTrans.Affiliation |
CardNumberThe number of the loyalty card the entry belongs to. | String (30)RetailLoyaltyCardNumber | No | Yes | RetailLoyaltyCard.CardNumber | RetailLoyaltyCardRewardPointTrans.CardNumber |
ChannelPoints to the retail channel where the entry arose. | Int64RefRecId | No | No (private) | RetailChannelTable.RecId | RetailLoyaltyCardRewardPointTrans.Channel |
CustomerAccountThe customer account linked to the entry. | String (20)CustAccount | No | Yes | CustTable.AccountNum | RetailLoyaltyCardRewardPointTrans.CustAccount |
CustomerAccountCompanyThe company that the linked customer account belongs to. | StringDataAreaId | No | Yes | RetailLoyaltyCardRewardPointTrans.CustAccountDataAreaId | |
EntryDateThe date the entry was made. | DateRetailLoyaltyRewardPointEntryDate | No | Yes | RetailLoyaltyCardRewardPointTrans.EntryDate | |
EntryTimeThe time of day the entry was made. | TimeRetailLoyaltyRewardPointEntryTime | No | Yes | RetailLoyaltyCardRewardPointTrans.EntryTime | |
EntryTypeThe kind of entry: Earn, Redeem, Return earned, Adjust or Refund. | Enum
| No | Yes | RetailLoyaltyCardRewardPointTrans.EntryType | |
ExpirationDateThe date the reward points expire. | DateRetailLoyaltyRewardPointExpirationDate | No | Yes | RetailLoyaltyCardRewardPointTrans.ExpirationDate | |
LoyaltyTierPoints to the loyalty tier linked to the entry. | Int64RefRecId | No | No (private) | RetailLoyaltyTier.RecId | RetailLoyaltyCardRewardPointTrans.LoyaltyTier |
LoyaltyTransactionTypeThe source of the entry: Retail transaction, Sales order, Loyalty adjustment or Non transactional activity. | Enum
| Yes | Yes | RetailLoyaltyCardRewardPointTrans.LoyaltyTransactionType | |
LoyaltyTransactionCompanyThe company of the linked retail transaction records. | StringDataAreaId | No | Yes | RetailLoyaltyCardRewardPointTrans.loyaltyTransDataAreaId | |
LoyaltyTransactionLineNumberThe line number of the linked loyalty reward point transaction. | RealLineNum | No | Yes | RetailTransactionLoyaltyRewardPointTrans.LineNum | RetailLoyaltyCardRewardPointTrans.LoyaltyTransLineNum |
ReceiptIdThe receipt number linked to the entry. | String (18)RetailReceiptId | No | Yes | RetailLoyaltyCardRewardPointTrans.ReceiptId | |
RemainingThe amount or quantity of points still remaining for the entry. | RealRetailLoyaltyRewardPointRemaining | No | Yes | RetailLoyaltyCardRewardPointTrans.Remaining | |
RewardPointPoints to the reward point type used by the entry. | Int64RefRecId | No | No (private) | RetailLoyaltyRewardPoint.RecId | RetailLoyaltyCardRewardPointTrans.RewardPoint |
RewardPointAmountQtyThe number of reward points in the entry. | RealRetailLoyaltyRewardPointAmountQty | No | Yes | RetailLoyaltyCardRewardPointTrans.RewardPointAmountQty | |
SalesOrderIdThe sales order linked to the entry. | String (20)SalesIdBase | No | Yes | SalesTable.SalesId | RetailLoyaltyCardRewardPointTrans.SalesId |
OperatorIdThe ID of the operator who handled the transaction. | String (25)RetailStaffId | No | Yes | RetailLoyaltyCardRewardPointTrans.StaffId | |
TerminalThe number of the POS register used for the transaction. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailLoyaltyCardRewardPointTrans.terminalId |
TransactionNumberThe number of the retail transaction linked to the entry. | String (44)RetailTransactionId | No | Yes | RetailTransactionTable.transactionId | RetailLoyaltyCardRewardPointTrans.transactionId |
LoyaltyProgramNameName of the affiliation or loyalty program. It is the key. | String (64)RetailAffiliationName | Yes | Yes | RetailAffiliation.Name | |
ChannelOperatingUnitIdOperating unit that the channel is based on. It is the key of the record. | Int64RefRecId | No | No (private) | OMOperatingUnit.RecId | RetailChannelTable.OMOperatingUnitID |
OperatingUnitNumberThe number that identifies the operating unit. | String (30)OMOperatingUnitNumber | No | Yes | OMOperatingUnit.OMOperatingUnitNumber | |
RewardPointIdIdentifier of the reward point. It is the key. | String (64)RetailLoyaltyRewardPointID | Yes | Yes | RetailLoyaltyRewardPoint.RewardPointId | |
LoyaltyTierLoyaltyProgramRecord ID of the loyalty program the tier belongs to. It points to a loyalty program. | Int64RefRecId | Yes | No (private) | RetailAffiliation.RecId | RetailLoyaltyTier.Affiliation |
LoyaltyTierIdIdentifier or name of the tier. | String (64)RetailAffiliationTierId | No | Yes | RetailLoyaltyTier.TierId | |
LoyaltyTierLoyaltyProgramNameName of the affiliation or loyalty program. It is the key. | String (64)RetailAffiliationName | No | Yes | RetailAffiliation.Name | |
RetailTransactionSalesTransLineNumThe line number of the linked retail sales transaction. | RealLineNumOptional | No | Yes | RetailTransactionSalesTrans.lineNum | RetailLoyaltyCardRewardPointTrans.RetailTransactionSalesTransLineNum |
SalesLineLineNumThe line number of the linked sales order line. | RealLineNumOptional | No | Yes | RetailLoyaltyCardRewardPointTrans.SalesLineLineNum | |
StartDateThe date the reward points start to be valid. | DateRetailLoyaltyRewardPointStartDate | No | Yes | RetailLoyaltyCardRewardPointTrans.StartDate | |
CardTenderTypeThe card type, such as As card tender, As contact tender, No tender or Blocked. | EnumRetailLoyaltyTenderType
| No | Yes | RetailLoyaltyCardRewardPointTrans.CardTenderType | |
NonTransactionalActivityIdThe ID of the linked non-transactional loyalty activity. | String (30)RetailLoyaltyNonTransactionalActivityId | No | Yes | RetailLoyaltyCardRewardPointTrans.NonTransactionalActivityId | |
LoyaltyOtherActivityTypeIdPoints to the other activity type linked to the entry. | Int64RetailLoyaltyOtherActivityTypeRefRecId | No | No (private) | RetailLoyaltyOtherActivityType.RecId | RetailLoyaltyCardRewardPointTrans.LoyaltyOtherActivityTypeId |
LoyaltyOtherActivityTypeNameThe name of the other activity type. | String (50)RetailLoyaltyOtherActivityTypeName | No | Yes | RetailLoyaltyOtherActivityType.LoyaltyOtherActivityTypeName | |
storeIdThe number of the store where the transaction took place. | StringRetailStoreId | No | Yes | RetailStoreTable.StoreNumber | RetailLoyaltyCardRewardPointTrans.storeId |
Foreign keys (16)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
AdjustmentId→RetailLoyaltyCardRewardPointAdjustment.AdjustmentId(key of RetailLoyaltyCardRewardPointAdjustment)Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailLoyaltyCardRewardPointAdjustment record
RetailLoyaltyCardRewardPointAdjustment details: see RetailLoyaltyCardRewardPointAdjustmentEntity
LoyaltyProgram→RetailAffiliation.RecId(key of RetailAffiliation)Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailAffiliation record
RetailAffiliation details: see RetailLoyaltyCardTierEntity, RetailLoyaltyCardTierV2Entity, RetailAffiliationEntity
CardNumber→RetailLoyaltyCard.CardNumber(key of RetailLoyaltyCard)Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailLoyaltyCard record
RetailLoyaltyCard details: see RetailLoyaltyCardEntity, RetailLoyaltyCardRewardPointAdjustmentEntity, RetailLoyaltyCardTierEntity
Channel→RetailChannelTable.RecId(key of RetailChannelTable)Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
CustomerAccount→CustTable.AccountNum(key of CustTable)Join on all of:
CustomerAccount=CustTable.AccountNum,CustomerAccountCompany=CustTable.dataAreaIdMany RetailLoyaltyCardRewardPointTrans records → zero or one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
LoyaltyTier→RetailLoyaltyTier.RecId(key of RetailLoyaltyTier)Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailLoyaltyTier record
RetailLoyaltyTier details: see RetailLoyaltyTierEntity, RetailLoyaltyCardRewardPointTransactionEntity, RetailLoyaltyCardTierEntity
LoyaltyTransactionLineNumber→RetailTransactionLoyaltyRewardPointTrans.LineNum(key of RetailTransactionLoyaltyRewardPointTrans)Join on all of:
LoyaltyTransactionLineNumber=RetailTransactionLoyaltyRewardPointTrans.LineNum,LoyaltyTransactionCompany=RetailTransactionLoyaltyRewardPointTrans.dataAreaId,TransactionNumber=RetailTransactionLoyaltyRewardPointTrans.transactionId,Terminal=RetailTransactionLoyaltyRewardPointTrans.terminalId,storeId=RetailTransactionLoyaltyRewardPointTrans.storeId,Channel=RetailTransactionLoyaltyRewardPointTrans.ChannelZero or one RetailLoyaltyCardRewardPointTrans record → zero or one RetailTransactionLoyaltyRewardPointTrans record
RetailTransactionLoyaltyRewardPointTrans details: see RetailTransactionLoyaltyRewardPointTransEntity, RetailTransactionLoyaltyRewardPointsLineEntity, RetailTransactionLoyaltyRewardPointTransBIEntity
RewardPoint→RetailLoyaltyRewardPoint.RecId(key of RetailLoyaltyRewardPoint)Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailLoyaltyRewardPoint record
RetailLoyaltyRewardPoint details: see RetailLoyaltyRewardPointEntity, RetailLoyaltyCardRewardPointAdjustmentEntity, RetailLoyaltyCardRewardPointTransactionEntity
SalesOrderId→SalesTable.SalesId(key of SalesTable)Join on all of:
SalesOrderId=SalesTable.SalesId,LoyaltyTransactionCompany=SalesTable.dataAreaIdMany RetailLoyaltyCardRewardPointTrans records → zero or one SalesTable record
SalesTable details: see SalesOrderHeaderV3Entity, SalesOrderHeaderV2Entity, SalesOrderHeaderV4Entity
Terminal→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
TransactionNumber→RetailTransactionTable.transactionId(key of RetailTransactionTable)Join on all of:
TransactionNumber=RetailTransactionTable.transactionId,LoyaltyTransactionCompany=RetailTransactionTable.dataAreaId,Channel=RetailTransactionTable.Channel,Terminal=RetailTransactionTable.terminal,storeId=RetailTransactionTable.storeZero or one RetailLoyaltyCardRewardPointTrans record → zero or one RetailTransactionTable record
RetailTransactionTable details: see RetailTransactionEntity, RetailTransactionTableBIEntity, RetailTransactionTableCDREntity
ChannelOperatingUnitId→OMOperatingUnit.RecId(key of OMOperatingUnit)Zero or one RetailChannelTable record → exactly one OMOperatingUnit record
OMOperatingUnit details: see ACOCostCenterTypeEntity, OMOperatingUnitEntity, AssetPackingSlipEntity
LoyaltyTierLoyaltyProgram→RetailAffiliation.RecId(key of RetailAffiliation)Many RetailLoyaltyTier records → exactly one RetailAffiliation record
RetailAffiliation details: see RetailLoyaltyCardTierEntity, RetailLoyaltyCardTierV2Entity, RetailAffiliationEntity
RetailTransactionSalesTransLineNum→RetailTransactionSalesTrans.lineNum(key of RetailTransactionSalesTrans)Join on all of:
RetailTransactionSalesTransLineNum=RetailTransactionSalesTrans.lineNum,LoyaltyTransactionCompany=RetailTransactionSalesTrans.DataAreaId,Channel=RetailTransactionSalesTrans.Channel,storeId=RetailTransactionSalesTrans.store,Terminal=RetailTransactionSalesTrans.terminalId,TransactionNumber=RetailTransactionSalesTrans.transactionIdMany RetailLoyaltyCardRewardPointTrans records → zero or one RetailTransactionSalesTrans record
RetailTransactionSalesTrans details: see RetailTransactionSalesLineEntity, RetailTransactionSalesLineV2Entity, RetailTransactionSalesTransBIEntity
LoyaltyOtherActivityTypeId→RetailLoyaltyOtherActivityType.RecId(key of RetailLoyaltyOtherActivityType)Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailLoyaltyOtherActivityType record
RetailLoyaltyOtherActivityType details: see RetailLoyaltyOtherActivityTypeEntity, RetailLoyaltyCardRewardPointTransactionEntity, RetailLoyaltyEarnSchemeLineEntity
storeId→RetailStoreTable.StoreNumber(key of RetailStoreTable)Many RetailLoyaltyCardRewardPointTrans records → zero or one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
Need help with RetailLoyaltyCardRewardPointTransactionV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.