Data entity
RetailTransactionAffiliationTransEntity
Lists the affiliations (loyalty programs) attached to retail transactions. Each record is identified by the transaction (store, register and transaction number), the operating unit, the affiliation and the loyalty tier. It links to the loyalty program, loyalty tier, retail channel and store.
- Entity name
RetailTransactionAffiliationTransEntity- Public entity name
TransactionAffiliationTrans- OData collection
TransactionAffiliationTrans- Category
Transaction- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
RetailAffiliation_Name, RetailAffiliation1_Name, RetailLoyaltyTier_TierId, OMOperatingUnit_PartyNumber, StoreId, TerminalId, TransactionId- Staging table
RetailTransactionAffiliationTransStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/TransactionAffiliationTrans- Dataverse virtual table
mserp_retailtransactionaffiliationtransentity. 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
RetailTransactionAffiliationTrans· rootRetailAffiliation· OuterJoin toRetailTransactionAffiliationTrans· read-onlyRetailChannelTable· OuterJoin toRetailTransactionAffiliationTrans· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailDirectSalesChannel· Derived toRetailChannelTableRetailMCRChannelTable· Derived toRetailChannelTableRetailOnlineChannelTable· Derived toRetailChannelTableRetailStoreTable· Derived toRetailChannelTableRetailLoyaltyTier· OuterJoin toRetailTransactionAffiliationTrans· read-onlyRetailAffiliation1(tableRetailAffiliation) · InnerJoin toRetailLoyaltyTier· read-only
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AffiliationAffiliation (loyalty programme) record this row refers to. | Int64RefRecId | No | No (private) | RetailAffiliation.RecId | RetailTransactionAffiliationTrans.Affiliation |
ChannelRetail channel of the transaction, pointing to the channel record. | Int64RetailChannelRecId | No | No (private) | RetailChannelTable.RecId | RetailTransactionAffiliationTrans.Channel |
LoyaltyTierLoyalty tier record this row refers to. | Int64RefRecId | No | No (private) | RetailLoyaltyTier.RecId | RetailTransactionAffiliationTrans.LoyaltyTier |
ReceiptIdReceipt number of the transaction. | String (18)RetailReceiptId | No | Yes | RetailTransactionAffiliationTrans.ReceiptId | |
replicationCounterFromOriginCounter used to track replication from the source location. | IntegerRetailReplicationCounter | No | Yes | RetailTransactionAffiliationTrans.replicationCounterFromOrigin | |
StaffIdID of the operator who handled the transaction. | String (25)RetailStaffId | No | Yes | RetailTransactionAffiliationTrans.StaffId | |
StoreIdNumber of the store, pointing to the store record. | StringRetailStoreId | Yes | Yes | RetailStoreTable.StoreNumber | RetailTransactionAffiliationTrans.StoreId |
TerminalIdNumber of the POS register, pointing to the register record. | StringRetailTerminalId | Yes | Yes | RetailTerminalTable.terminalId | RetailTransactionAffiliationTrans.TerminalId |
TransactionIdNumber of the retail transaction, matched together with channel, store and register. | String (44)RetailTransactionId | Yes | Yes | RetailTransactionTable.transactionId | RetailTransactionAffiliationTrans.TransactionId |
RetailAffiliation_NameName of the affiliation or loyalty program. It is the key. | String (64)RetailAffiliationName | Yes | Yes | RetailAffiliation.Name | |
RetailChannelTable_OMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record. | Int64RefRecId | No | No (private) | OMOperatingUnit.RecId | RetailChannelTable.OMOperatingUnitID |
OMOperatingUnit_PartyNumberUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | Yes | Yes | DirPartyTable.PartyNumber | |
RetailLoyaltyTier_AffiliationRecord ID of the loyalty program the tier belongs to. It points to a loyalty program. | Int64RefRecId | Yes | No (private) | RetailAffiliation.RecId | RetailLoyaltyTier.Affiliation |
RetailLoyaltyTier_TierIdIdentifier or name of the tier. | String (64)RetailAffiliationTierId | Yes | Yes | RetailLoyaltyTier.TierId | |
RetailAffiliation1_NameName of the affiliation or loyalty program. It is the key. | String (64)RetailAffiliationName | Yes | Yes | RetailAffiliation.Name |
Foreign keys (8)
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.
Affiliation→RetailAffiliation.RecId(key of RetailAffiliation)Many RetailTransactionAffiliationTrans records → zero or one RetailAffiliation record
RetailAffiliation details: see RetailLoyaltyCardTierEntity, RetailLoyaltyCardTierV2Entity, RetailAffiliationEntity
Channel→RetailChannelTable.RecId(key of RetailChannelTable)Many RetailTransactionAffiliationTrans records → exactly one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
LoyaltyTier→RetailLoyaltyTier.RecId(key of RetailLoyaltyTier)Many RetailTransactionAffiliationTrans records → zero or one RetailLoyaltyTier record
RetailLoyaltyTier details: see RetailLoyaltyTierEntity, RetailLoyaltyCardRewardPointTransactionEntity, RetailLoyaltyCardRewardPointTransactionV2Entity
StoreId→RetailStoreTable.StoreNumber(key of RetailStoreTable)Many RetailTransactionAffiliationTrans records → exactly one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
TerminalId→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionAffiliationTrans records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
TransactionId→RetailTransactionTable.transactionId(key of RetailTransactionTable)Join on all of:
TransactionId=RetailTransactionTable.transactionId,Channel=RetailTransactionTable.Channel,StoreId=RetailTransactionTable.store,TerminalId=RetailTransactionTable.terminalMany RetailTransactionAffiliationTrans records → zero or one RetailTransactionTable record
RetailTransactionTable details: see RetailTransactionEntity, RetailTransactionTableBIEntity, RetailTransactionTableCDREntity
RetailChannelTable_OMOperatingUnitID→OMOperatingUnit.RecId(key of OMOperatingUnit)Zero or one RetailChannelTable record → exactly one OMOperatingUnit record
OMOperatingUnit details: see ACOCostCenterTypeEntity, OMOperatingUnitEntity, AssetPackingSlipEntity
RetailLoyaltyTier_Affiliation→RetailAffiliation.RecId(key of RetailAffiliation)Many RetailLoyaltyTier records → exactly one RetailAffiliation record
RetailAffiliation details: see RetailLoyaltyCardTierEntity, RetailLoyaltyCardTierV2Entity, RetailAffiliationEntity
Need help with RetailTransactionAffiliationTransEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.