Table
WHSReturnLineDetail
Return line detail
Holds the lines of a return. Each line is identified by Return ID and line number. A line stores the item, inventory dimensions, quantity, unit and the date until which the return is accepted. It links to the return header and to the source order line.
- Table name
WHSReturnLineDetail- Module
Warehouse- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
WHSandTMS- Primary index
ReturnIDLineNumIdx- Replacement key
ReturnIDLineNumIdx- Key fields
ReturnID, LineNum- Model
Foundation
Fields (19)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ReturnIDReturn this line belongs to. Points to the return detail record. | String (20)WHSReturnID | Yes | WHSReturnDetail.ReturnID | WHSReturnLineDetailEntity |
LineNumNumber of the line within the return. | RealLineNum | Yes | WHSReturnLineDetailEntity | |
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 | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
InventDimIdInventory dimensions of the returned item. Points to an inventory dimension record. | String (20)InventDimId | Yes | InventDim.inventDimId | WHSReturnLineDetailEntity |
InventTransIdLot ID that links the line to an inventory transaction or a sales line. | String (20)InventTransId | Yes | InventTransOrigin.InventTransIdSalesLine.InventTransId | WHSReturnLineDetailEntity |
ItemIdItem being returned. Points to an item. | String (20)ItemId | Yes | InventTable.ItemId | WHSReturnLineDetailEntity |
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 | |
OrderTypeKind of order the line comes from: unsupported, sales order or outbound shipment order. | EnumWHSReturnDetailOrderType (enum) | No | WHSReturnLineDetailEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
QtyQuantity of the item on the line. | RealWHSReturnLineDetailQty | Yes | WHSReturnLineDetailEntity | |
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 | |
ReturnUntilUTCDateTimeDate and time, in UTC, up to which the return is accepted. | UtcDateTimeWHSReturnUntilUTCDateTime | No | WHSReturnLineDetailEntity | |
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 | |
UnitUnit of measure for the quantity. Points to a unit. | StringUnitOfMeasureSymbol | Yes | UnitOfMeasure.Symbol | WHSReturnLineDetailEntity |
Indexes (1)
Relations (6)
Each relation joins WHSReturnLineDetail to another table on the fields shown.
WHSReturnDetail→WHSReturnDetailJoin on
ReturnID = WHSReturnDetail.ReturnIDMany WHSReturnLineDetail records → exactly one WHSReturnDetail record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany WHSReturnLineDetail records → exactly one InventTable record
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany WHSReturnLineDetail records → exactly one InventDim record
UnitOfMeasure→UnitOfMeasureJoin on
Unit = UnitOfMeasure.SymbolMany WHSReturnLineDetail records → exactly one UnitOfMeasure record
InventTransOrigin→InventTransOriginJoin on
InventTransId = InventTransOrigin.InventTransIdMany WHSReturnLineDetail records → exactly one InventTransOrigin record
SalesLine→SalesLineJoin on
OrderType = WHSReturnDetailOrderType::SalesOrder,InventTransId = SalesLine.InventTransIdMany WHSReturnLineDetail records → zero or one SalesLine record
Get this data out
Tables are not exposed directly. These public entities read from WHSReturnLineDetail; use one of them in Power BI, Power Platform or a data management project.
WHSReturnLineDetailEntity· 9 fields from this table
Need help with WHSReturnLineDetail in a report, an integration or a migration? Talk to Dr Dynamics.