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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelIdRetail channel of the log entry. Points to the channel by system record ID.Int64
RefRecId
NoRetailChannelTable.RecIdRetailLogTransactionReferenceEntity
StoreIdStore of the log entry. Points to the store record.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailLogTransactionReferenceEntity
TerminalIdPOS register of the log entry. Points to the register record.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailLogTransactionReferenceEntity
RetailLogIdLog entry that this reference belongs to. Points to the retail log.Int64
RetailLogIdentifier
NoRetailLog.RetailLogIdRetailLogTransactionReferenceEntity
UploadTypeHow the log entry was uploaded: async service, real-time service or back office.Enum
RetailAuditEventUploadType (enum)
YesRetailLog.UploadTypeRetailLogTransactionReferenceEntity
ReferenceIdIdentifier of this reference within the log entry.Int64
RetailLogReferenceId
NoRetailLogTransactionReferenceEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
OriginNumber of the location that the reference came from.String (50)
RetailConnDistributionLocationId
NoRetailLogTransactionReferenceEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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
RefChannelChannel of the referenced transaction. Points to the channel record.Int64
RefRecId
NoRetailChannelTable.RecIdRetailLogTransactionReferenceEntity
RefStoreStore of the referenced transaction. Points to the store record.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailLogTransactionReferenceEntity
RefTerminalRegister of the referenced transaction. Part of the link to the transaction record.String
RetailTerminalId
NoRetailTransactionTable.terminalRetailLogTransactionReferenceEntity
RefTransactionIdNumber of the referenced retail transaction.String (44)
RetailTransactionId
NoRetailTransactionTable.transactionIdRetailLogTransactionReferenceEntity
replicationCounterFromOriginCounter value from the origin location, used to track replication.Integer
RetailReplicationCounter
NoRetailLogTransactionReferenceEntity
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

Indexes (3)

Relations (8)

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

  • RetailChannelTable → RetailChannelTable

    Join on ChannelId = RetailChannelTable.RecId

    Many RetailLogTransactionReference records → zero or one RetailChannelTable record

  • RetailStoreTable → RetailStoreTable

    Join on StoreId = RetailStoreTable.StoreNumber

    Many RetailLogTransactionReference records → zero or one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on TerminalId = RetailTerminalTable.terminalId

    Many RetailLogTransactionReference records → zero or one RetailTerminalTable record

  • RefRetailTransactionTable → RetailTransactionTable

    Join on RefChannel = RetailTransactionTable.Channel, RefStore = RetailTransactionTable.store, RefTerminal = RetailTransactionTable.terminal, RefTransactionId = RetailTransactionTable.transactionId

    Many RetailLogTransactionReference records → zero or one RetailTransactionTable record

  • RefChannelTable → RetailChannelTable

    Join on RefChannel = RetailChannelTable.RecId

    Many RetailLogTransactionReference records → zero or one RetailChannelTable record

  • RefStore → RetailStoreTable

    Join on RefStore = RetailStoreTable.StoreNumber

    Many RetailLogTransactionReference records → zero or one RetailStoreTable record

  • RefTerminal → RetailTerminalTable

    Join on TerminalId = RetailTerminalTable.terminalId

    Many RetailLogTransactionReference records → zero or one RetailTerminalTable record

  • RetailLog → RetailLog

    Join on ChannelId = RetailLog.ChannelId, StoreId = RetailLog.StoreId, TerminalId = RetailLog.terminalId, RetailLogId = RetailLog.RetailLogId, UploadType = RetailLog.UploadType

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

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

Email sales@drdynamics.co.uk