Table
RetailTransactionAffiliationTransHistory
Archived affiliations for transactions
Archived links between a Commerce transaction and affiliations. Each row can also carry a loyalty tier. Rows are identified by channel, store, register and transaction number, with receipt and operator details. No key or relation is defined in the metadata.
- Table name
RetailTransactionAffiliationTransHistory- Module
Commerce transactions and orders- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (22)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AffiliationReference to the affiliation record, stored as a record ID. | Int64RefRecId | No | None | |
ChannelReference to the channel record, stored as a record ID. | Int64RetailChannelRecId | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
LoyaltyTierReference to the loyalty tier record, stored as a record ID. | Int64RefRecId | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field. | Int64ModifiedTransactionId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ReceiptIdReceipt number of the transaction. | String (18)RetailReceiptId | 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 | |
replicationCounterFromOriginCounter value from the origin location, used to track replication of the record. | IntegerRetailReplicationCounter | No | None | |
StaffIdID of the operator who handled the transaction. | String (25)RetailStaffId | No | None | |
StoreIdNumber of the store where the transaction took place. | StringRetailStoreId | Yes | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
SysRowVersionNumberSystem version number of the row. It has no label.low confidence | Int64SysRowVersionNumber | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TerminalIdNumber of the register where the transaction took place. | StringRetailTerminalId | Yes | None | |
TransactionIdNumber of the transaction the affiliation belongs to. | String (44)RetailTransactionId | Yes | None |
Indexes (2)
AffiliationTxnIdxAffiliation,LoyaltyTier,Channel,StoreId,TerminalId,TransactionId,DataAreaId,PartitionUnique, alternate key.
transactionIdxChannel,StoreId,TerminalId,TransactionId,DataAreaId,PartitionNot unique.
Get this data out
No public entity reads from RetailTransactionAffiliationTransHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailTransactionAffiliationTransHistory in a report, an integration or a migration? Talk to Dr Dynamics.