Table
RetailReturnedQuantities
Retail returned quantities
Records the quantity returned for retail sales transaction lines. Each row is keyed by channel, store, register, transaction number and line number. It links to the retail channel, store, POS register and sales transaction records.
- Table name
RetailReturnedQuantities- Module
Cross-module and platform- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
transactionLineIdx- Replacement key
None- Key fields
Channel, Store, TerminalId, TransactionId, LineNum- Model
Foundation
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelPoints to the retail channel record. | Int64RefRecId | No | RetailChannelTable.RecId | RetailReturnedQuantitiesEntity |
StoreNumber of the store where the sale was made. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | RetailReturnedQuantitiesEntity |
TerminalIdNumber of the POS register used. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | RetailReturnedQuantitiesEntity |
TransactionIdNumber of the sales transaction. | String (44)RetailTransactionId | Yes | RetailReturnedQuantitiesEntity | |
LineNumLine number of the sales transaction line the return relates to. | RealLineNum | Yes | RetailReturnedQuantitiesEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
LastReturnProcessedTimeTime of the latest return transaction counted in the returned quantity. | UtcDateTimeLastReturnProcessedTime | Yes | RetailReturnedQuantitiesEntity | |
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 | |
ReturnedQtyQuantity that has been returned on the line. | RealQty | Yes | RetailReturnedQuantitiesEntity | |
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 (1)
transactionLineIdxPrimary indexChannel,Store,TerminalId,TransactionId,LineNumUnique, alternate key.
Relations (4)
Each relation joins RetailReturnedQuantities to another table on the fields shown.
RetailTransactionSalesTrans→RetailTransactionSalesTransJoin on
LineNum = RetailTransactionSalesTrans.lineNum,TransactionId = RetailTransactionSalesTrans.transactionId,TerminalId = RetailTransactionSalesTrans.terminalId,Store = RetailTransactionSalesTrans.storeZero or one RetailReturnedQuantities record → exactly one RetailTransactionSalesTrans record
RetailTerminalTable→RetailTerminalTableJoin on
TerminalId = RetailTerminalTable.terminalIdMany RetailReturnedQuantities records → exactly one RetailTerminalTable record
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailReturnedQuantities records → zero or one RetailChannelTable record
RetailStoreTable→RetailStoreTableJoin on
Store = RetailStoreTable.StoreNumberMany RetailReturnedQuantities records → exactly one RetailStoreTable record
Get this data out
Tables are not exposed directly. These public entities read from RetailReturnedQuantities; use one of them in Power BI, Power Platform or a data management project.
RetailReturnedQuantitiesEntity· 7 fields from this table
Need help with RetailReturnedQuantities in a report, an integration or a migration? Talk to Dr Dynamics.