Table

RetailGiftCardChannelTransactions

Gift card channel transactions

Records gift card operations seen by retail channels, such as issue, redeem, add to, refund, adjust, void and close. The key combines gift card number, transaction number, operation, date and time. Each record also shows the channel, register, operator and receipt.

Table name
RetailGiftCardChannelTransactions
Module
Commerce payments
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
cardNumberIdx
Replacement key
None
Key fields
cardNumber, transactionId, operation, transDate, transTime
Model
Foundation

Fields (17)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
cardNumberNumber of the gift card.String (30)
RetailGiftCardId
YesRetailGiftCardTable.entryIdRetailGiftCardChannelTransactionsEntity
transactionIdRetail transaction number of the operation.String (44)
RetailTransactionId
NoRetailGiftCardChannelTransactionsEntity
operationKind of gift card operation, for example issue, redeem, refund, void or close.Enum
RetailGiftCardOperation (enum)
YesRetailGiftCardChannelTransactionsEntity
transDateDate of the operation.Date
RetailtransDate
NoRetailGiftCardChannelTransactionsEntity
transTimeTime of day of the operation.Time
RetailTransTime
NoRetailGiftCardChannelTransactionsEntity
amountAmount of the gift card operation (in accounting currency).Real
AmountMST
YesRetailGiftCardChannelTransactionsEntity
ChannelRetail channel where the operation took place.Int64
RetailChannelRecId
NoRetailChannelTable.RecIdRetailGiftCardChannelTransactionsEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
receiptIdReceipt number linked to the operation.String (18)
RetailReceiptId
NoRetailGiftCardChannelTransactionsEntity
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
replicationCounterFromOriginCounter value used to track replication of the record from its origin.Integer
RetailReplicationCounter
NoRetailGiftCardChannelTransactionsEntity
staffIdID of the operator who did the operation.String (25)
RetailStaffId
NoRetailGiftCardChannelTransactionsEntity
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
terminalIdRegister where the operation took place.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailGiftCardChannelTransactionsEntity

Indexes (1)

Relations (3)

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

  • cardNumber → RetailGiftCardTable

    Join on cardNumber = RetailGiftCardTable.entryId

    Many RetailGiftCardChannelTransactions records → exactly one RetailGiftCardTable record

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailGiftCardChannelTransactions records → exactly one RetailChannelTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on terminalId = RetailTerminalTable.terminalId

    Many RetailGiftCardChannelTransactions records → exactly one RetailTerminalTable record

Get this data out

Tables are not exposed directly. These public entities read from RetailGiftCardChannelTransactions; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk