Table
RetailLogTransactionReference
Retail log transaction reference
Links a retail log entry to a retail transaction. The key combines channel, store, register, log ID, upload type and reference ID. It points to the log entry and to the transaction it refers to.
- Table name
RetailLogTransactionReference- Module
Commerce- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
PrimaryIdx- Replacement key
PrimaryIdx- Key fields
ChannelId, StoreId, TerminalId, RetailLogId, UploadType, ReferenceId- Model
Foundation
Fields (18)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelIdRetail channel of the log entry. Points to the channel by system record ID. | Int64RefRecId | No | RetailChannelTable.RecId | RetailLogTransactionReferenceEntity |
StoreIdStore of the log entry. Points to the store record. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | RetailLogTransactionReferenceEntity |
TerminalIdPOS register of the log entry. Points to the register record. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | RetailLogTransactionReferenceEntity |
RetailLogIdLog entry that this reference belongs to. Points to the retail log. | Int64RetailLogIdentifier | No | RetailLog.RetailLogId | RetailLogTransactionReferenceEntity |
UploadTypeHow the log entry was uploaded: async service, real-time service or back office. | EnumRetailAuditEventUploadType (enum) | Yes | RetailLog.UploadType | RetailLogTransactionReferenceEntity |
ReferenceIdIdentifier of this reference within the log entry. | Int64RetailLogReferenceId | No | RetailLogTransactionReferenceEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
OriginNumber of the location that the reference came from. | String (50)RetailConnDistributionLocationId | No | RetailLogTransactionReferenceEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
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 | |
RefChannelChannel of the referenced transaction. Points to the channel record. | Int64RefRecId | No | RetailChannelTable.RecId | RetailLogTransactionReferenceEntity |
RefStoreStore of the referenced transaction. Points to the store record. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | RetailLogTransactionReferenceEntity |
RefTerminalRegister of the referenced transaction. Part of the link to the transaction record. | StringRetailTerminalId | No | RetailTransactionTable.terminal | RetailLogTransactionReferenceEntity |
RefTransactionIdNumber of the referenced retail transaction. | String (44)RetailTransactionId | No | RetailTransactionTable.transactionId | RetailLogTransactionReferenceEntity |
replicationCounterFromOriginCounter value from the origin location, used to track replication. | IntegerRetailReplicationCounter | No | RetailLogTransactionReferenceEntity | |
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 |
Indexes (3)
PrimaryIdxPrimary indexReplacement keyChannelId,StoreId,TerminalId,RetailLogId,UploadType,ReferenceIdUnique, alternate key.
LocationIdxOrigin,replicationCounterFromOriginNot unique.
RefTransactionIdxRefChannel,RefStore,RefTerminal,RefTransactionIdNot unique.
Relations (8)
Each relation joins RetailLogTransactionReference to another table on the fields shown.
RetailChannelTable→RetailChannelTableJoin on
ChannelId = RetailChannelTable.RecIdMany RetailLogTransactionReference records → zero or one RetailChannelTable record
RetailStoreTable→RetailStoreTableJoin on
StoreId = RetailStoreTable.StoreNumberMany RetailLogTransactionReference records → zero or one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
TerminalId = RetailTerminalTable.terminalIdMany RetailLogTransactionReference records → zero or one RetailTerminalTable record
RefRetailTransactionTable→RetailTransactionTableJoin on
RefChannel = RetailTransactionTable.Channel,RefStore = RetailTransactionTable.store,RefTerminal = RetailTransactionTable.terminal,RefTransactionId = RetailTransactionTable.transactionIdMany RetailLogTransactionReference records → zero or one RetailTransactionTable record
RefChannelTable→RetailChannelTableJoin on
RefChannel = RetailChannelTable.RecIdMany RetailLogTransactionReference records → zero or one RetailChannelTable record
RefStore→RetailStoreTableJoin on
RefStore = RetailStoreTable.StoreNumberMany RetailLogTransactionReference records → zero or one RetailStoreTable record
RefTerminal→RetailTerminalTableJoin on
TerminalId = RetailTerminalTable.terminalIdMany RetailLogTransactionReference records → zero or one RetailTerminalTable record
RetailLog→RetailLogJoin on
ChannelId = RetailLog.ChannelId,StoreId = RetailLog.StoreId,TerminalId = RetailLog.terminalId,RetailLogId = RetailLog.RetailLogId,UploadType = RetailLog.UploadTypeMany RetailLogTransactionReference records → zero or one RetailLog record
Get this data out
Tables are not exposed directly. These public entities read from RetailLogTransactionReference; use one of them in Power BI, Power Platform or a data management project.
RetailLogTransactionReferenceEntity· 12 fields from this table
Need help with RetailLogTransactionReference in a report, an integration or a migration? Talk to Dr Dynamics.