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 · root
  • RetailAffiliation · OuterJoin to RetailTransactionAffiliationTrans · read-only
  • RetailChannelTable · OuterJoin to RetailTransactionAffiliationTrans · read-only
  • OMOperatingUnit · OuterJoin to RetailChannelTable · read-only
  • RetailDirectSalesChannel · Derived to RetailChannelTable
  • RetailMCRChannelTable · Derived to RetailChannelTable
  • RetailOnlineChannelTable · Derived to RetailChannelTable
  • RetailStoreTable · Derived to RetailChannelTable
  • RetailLoyaltyTier · OuterJoin to RetailTransactionAffiliationTrans · read-only
  • RetailAffiliation1 (table RetailAffiliation) · InnerJoin to RetailLoyaltyTier · read-only

Fields (15)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
AffiliationAffiliation (loyalty programme) record this row refers to.Int64
RefRecId
NoNo (private)RetailAffiliation.RecIdRetailTransactionAffiliationTrans.Affiliation
ChannelRetail channel of the transaction, pointing to the channel record.Int64
RetailChannelRecId
NoNo (private)RetailChannelTable.RecIdRetailTransactionAffiliationTrans.Channel
LoyaltyTierLoyalty tier record this row refers to.Int64
RefRecId
NoNo (private)RetailLoyaltyTier.RecIdRetailTransactionAffiliationTrans.LoyaltyTier
ReceiptIdReceipt number of the transaction.String (18)
RetailReceiptId
NoYesRetailTransactionAffiliationTrans.ReceiptId
replicationCounterFromOriginCounter used to track replication from the source location.Integer
RetailReplicationCounter
NoYesRetailTransactionAffiliationTrans.replicationCounterFromOrigin
StaffIdID of the operator who handled the transaction.String (25)
RetailStaffId
NoYesRetailTransactionAffiliationTrans.StaffId
StoreIdNumber of the store, pointing to the store record.String
RetailStoreId
YesYesRetailStoreTable.StoreNumberRetailTransactionAffiliationTrans.StoreId
TerminalIdNumber of the POS register, pointing to the register record.String
RetailTerminalId
YesYesRetailTerminalTable.terminalIdRetailTransactionAffiliationTrans.TerminalId
TransactionIdNumber of the retail transaction, matched together with channel, store and register.String (44)
RetailTransactionId
YesYesRetailTransactionTable.transactionIdRetailTransactionAffiliationTrans.TransactionId
RetailAffiliation_NameName of the affiliation or loyalty program. It is the key.String (64)
RetailAffiliationName
YesYesRetailAffiliation.Name
RetailChannelTable_OMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record.Int64
RefRecId
NoNo (private)OMOperatingUnit.RecIdRetailChannelTable.OMOperatingUnitID
OMOperatingUnit_PartyNumberUnique ID of the party. It is the key of the table.String (40)
DirPartyNumber
YesYesDirPartyTable.PartyNumber
RetailLoyaltyTier_AffiliationRecord ID of the loyalty program the tier belongs to. It points to a loyalty program.Int64
RefRecId
YesNo (private)RetailAffiliation.RecIdRetailLoyaltyTier.Affiliation
RetailLoyaltyTier_TierIdIdentifier or name of the tier.String (64)
RetailAffiliationTierId
YesYesRetailLoyaltyTier.TierId
RetailAffiliation1_NameName of the affiliation or loyalty program. It is the key.String (64)
RetailAffiliationName
YesYesRetailAffiliation.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.

Need help with RetailTransactionAffiliationTransEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk