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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ReturnIDReturn this line belongs to. Points to the return detail record.String (20)
WHSReturnID
YesWHSReturnDetail.ReturnIDWHSReturnLineDetailEntity
LineNumNumber of the line within the return.Real
LineNum
YesWHSReturnLineDetailEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InventDimIdInventory dimensions of the returned item. Points to an inventory dimension record.String (20)
InventDimId
YesInventDim.inventDimIdWHSReturnLineDetailEntity
InventTransIdLot ID that links the line to an inventory transaction or a sales line.String (20)
InventTransId
YesInventTransOrigin.InventTransIdSalesLine.InventTransIdWHSReturnLineDetailEntity
ItemIdItem being returned. Points to an item.String (20)
ItemId
YesInventTable.ItemIdWHSReturnLineDetailEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
OrderTypeKind of order the line comes from: unsupported, sales order or outbound shipment order.Enum
WHSReturnDetailOrderType (enum)
NoWHSReturnLineDetailEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QtyQuantity of the item on the line.Real
WHSReturnLineDetailQty
YesWHSReturnLineDetailEntity
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
ReturnUntilUTCDateTimeDate and time, in UTC, up to which the return is accepted.UtcDateTime
WHSReturnUntilUTCDateTime
NoWHSReturnLineDetailEntity
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
UnitUnit of measure for the quantity. Points to a unit.String
UnitOfMeasureSymbol
YesUnitOfMeasure.SymbolWHSReturnLineDetailEntity

Indexes (1)

  • ReturnIDLineNumIdxPrimary indexReplacement key

    ReturnID, LineNum

    Unique, alternate key.

Relations (6)

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

  • WHSReturnDetail → WHSReturnDetail

    Join on ReturnID = WHSReturnDetail.ReturnID

    Many WHSReturnLineDetail records → exactly one WHSReturnDetail record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many WHSReturnLineDetail records → exactly one InventTable record

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId

    Many WHSReturnLineDetail records → exactly one InventDim record

  • UnitOfMeasure → UnitOfMeasure

    Join on Unit = UnitOfMeasure.Symbol

    Many WHSReturnLineDetail records → exactly one UnitOfMeasure record

  • InventTransOrigin → InventTransOrigin

    Join on InventTransId = InventTransOrigin.InventTransId

    Many WHSReturnLineDetail records → exactly one InventTransOrigin record

  • SalesLine → SalesLine

    Join on OrderType = WHSReturnDetailOrderType::SalesOrder, InventTransId = SalesLine.InventTransId

    Many 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.

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

Email sales@drdynamics.co.uk