Table
RetailGiftCardTransactions
Gift card transactions
Records gift card operations such as issue, redeem, add to, refund, adjust, void and close. Each record links to a gift card, channel, register and retail transaction. It can also link to a sales order, an order line and an invoice account.
- Table name
RetailGiftCardTransactions- Module
Commerce payments- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (21)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
amountAmount of the gift card operation (in accounting currency). | RealAmountMST | Yes | RetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity | |
cardNumberNumber of the gift card. | String (30)RetailGiftCardId | Yes | RetailGiftCardTable.entryId | RetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity |
ChannelRetail channel where the operation took place. | Int64RetailChannelRecId | No | RetailChannelTable.RecId | RetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
MCRInventTransIdLot ID that links the record to a sales order line. | String (20)TradeInventTransId | No | SalesLine.InventTransId | None |
MCRInvoiceAccountCustomer account used for invoicing. | String (20)CustInvoiceAccount | No | CustTable.AccountNum | RetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity |
MCRSalesIdSales order that the operation relates to. | String (20)SalesIdBase | No | SalesTable.SalesId | None |
operationKind of gift card operation, for example issue, redeem, refund, void or close. | EnumRetailGiftCardOperation (enum) | Yes | RetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
receiptIdReceipt number linked to the operation. | String (18)RetailReceiptId | No | RetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity | |
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 | |
staffIdID of the operator who did the operation. | String (25)RetailStaffId | No | RetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity | |
StoreIdStore where the operation took place. | StringRetailStoreId | No | None | |
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 | |
terminalIdRegister where the operation took place. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | RetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity |
transactionIdRetail transaction number of the operation. | String (44)RetailTransactionId | No | RetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity | |
transDateDate of the operation. | DateRetailtransDate | No | RetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity | |
transTimeTime of day of the operation. | TimeRetailTransTime | No | None |
Indexes (3)
cardNumberIdxNot unique.
mcrInventTransIdxMCRInventTransId,Amount,RecIdNot unique.
cardNumberTransIdxNot unique.
Relations (7)
Each relation joins RetailGiftCardTransactions to another table on the fields shown.
cardNumber→RetailGiftCardTableJoin on
cardNumber = RetailGiftCardTable.entryIdMany RetailGiftCardTransactions records → exactly one RetailGiftCardTable record
MCRCustTable→CustTableJoin on
MCRInvoiceAccount = CustTable.AccountNumMany RetailGiftCardTransactions records → exactly one CustTable record
MCRSalesLine→SalesLineJoin on
MCRInventTransId = SalesLine.InventTransIdMany RetailGiftCardTransactions records → zero or one SalesLine record
MCRSalesTable→SalesTableJoin on
MCRSalesId = SalesTable.SalesIdMany RetailGiftCardTransactions records → zero or one SalesTable record
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailGiftCardTransactions records → exactly one RetailChannelTable record
RetailTerminalTable→RetailTerminalTableJoin on
terminalId = RetailTerminalTable.terminalIdMany RetailGiftCardTransactions records → exactly one RetailTerminalTable record
RetailTransactionTable→RetailTransactionTableJoin on
transactionId = RetailTransactionTable.transactionIdMany RetailGiftCardTransactions records → zero or one RetailTransactionTable record
Get this data out
Tables are not exposed directly. These public entities read from RetailGiftCardTransactions; use one of them in Power BI, Power Platform or a data management project.
RetailGiftCardTransactionsV2Entity· 10 fields from this tableRetailGiftCardTransactionsEntity· 10 fields from this table
Need help with RetailGiftCardTransactions in a report, an integration or a migration? Talk to Dr Dynamics.