Table
WHSWorkLine
Work lines
Holds the lines of warehouse work, identified by the work ID and the line number. A line has a work type (such as pick or put), a status, an item, a location, quantities and timestamps. It links to shipments, loads, orders, containers and license plates, and is used by BI and cycle counting entities.
- Table name
WHSWorkLine- Module
Inventory- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
WHSandTMS- Primary index
WorkIdLineNumIdx- Replacement key
WorkIdLineNumIdx- Key fields
WorkId, LineNum- Model
Foundation
Fields (59)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
WorkIdThe work record this line belongs to. | String (20)WHSWorkId | Yes | WHSWorkTable.WorkId | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity |
LineNumLine number within the work. | RealLineNum | Yes | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
ActualTimeTime actually taken for the line. | RealWHSActualTime | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
AllocatedWMSLocationIdThe location proposed for the line. | StringWMSLocationId | No | WHSWorkLineBiEntity | |
AskForNewLicensePlateYes/No setting for asking the user for a new license plate. | EnumWHSAskForNewLicensePlateNoYes (enum) | No | WHSWorkLineBiEntity | |
AvailPhysicalQuantity of physical stock that is not reserved. | RealInventQtyAvailPhysical | No | WHSWorkLineBiEntity | |
CapturedWeightWeight recorded for the line. | RealWHSCapturedWeight | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
ContainerIdThe container linked to the line. | String (25)WHSContainerId | No | WHSContainerTable.ContainerId | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | WHSWorkLineBiEntity | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | WHSWorkLineBiEntity | |
EstimatedTimeTime expected for the line. | RealWHSEstimatedTime | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
ExtraInventHandlingQtyExtra inventory quantity handled on the line. | RealWHSExtraInventHandlingQty | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
FEFOBatchIdBatch ID used for first-expired, first-out handling. | String (20)WHSFEFOBatchId | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
InventDimIdInventory dimensions of the line. | String (20)InventDimId | No | InventDim.inventDimId | WHSWorkLineBiEntity |
InventoryTransactionOriginIdUnique ID of the warehouse inventory transaction origin. | GuidWHSInventoryTransactionOriginId | No | WHSWorkLineBiEntity | |
InventQtyRemainQuantity remaining, in the inventory unit. | RealWHSInventQtyRemain | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
InventQtyWorkWork quantity, in the inventory unit. | RealWHSInventQtyWork | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
InventTransIdLot ID of the inventory transaction, taken from the originator. | String (20)InventTransId | No | InventTransOrigin.InventTransId | WHSWorkLineBiEntity |
InventTransOriginIdSupplyPoints to the marked inventory transaction originator. | Int64InventTransOriginIdMarked | No | InventTransOrigin.RecId | WHSWorkLineBiEntity |
IsAnchoredYes/No flag for whether the line is anchored. | EnumWHSIsAnchoredNoYes (enum) | No | WHSWorkLineBiEntity | |
ItemIdThe item number of the line. | String (20)ItemId | No | InventTable.ItemId | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity |
ItemSetIdUnique ID of an inventory item set. Purpose not clear from the metadata.low confidence | GuidWHSInventoryItemSetId | No | WHSWorkLineBiEntity | |
ItemSetIdNoBelowLocDimUnique ID of an inventory item set. Purpose not clear from the metadata.low confidence | GuidWHSInventoryItemSetId | No | WHSWorkLineBiEntity | |
LoadIdThe load linked to the line. | String (20)WHSLoadId | No | WHSLoadTable.LoadId | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity |
LoadLineRefRecIdPoints to the related load line. | Int64RefRecId | No | WHSLoadLine.RecId | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity |
LocatedLPIdThe license plate that is located at this line. | String (25)WHSLocatedLPId | No | WHSLicensePlate.LicensePlateId | WHSWorkLineBiEntity |
MandatoryYes/No flag for whether the line is mandatory. | EnumWHSMandatoryNoYes (enum) | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | WHSWorkLineBiEntity | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | WHSWorkLineBiEntity | |
OrderCommittedInventDimIdInventory dimensions linked to the committed order. Purpose is partly inferred.low confidence | String (20)InventDimId | No | WHSWorkLineBiEntity | |
OrderNumNumber of the order, such as a production or sales order, that the line is for. | String (20)WHSOrderNum | No | ProdTable.ProdIdSalesTable.SalesId | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity |
OrigPackingWorkTargetLicensePlateIdLicense plate linked to the original packing work.low confidence | String (25)WHSLicensePlateId | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
OutboundSortPositionPoints to the outbound sorting position record. | Int64WHSOutboundSortPositionRecId | No | WHSOutboundSortPosition.RecId | WHSWorkLineBiEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
QtyRemainQuantity remaining, in the line unit. | RealWHSQtyRemain | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
QtyWorkWork quantity, in the line unit. | RealWHSQtyWork | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
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 | |
ReplenDemandYes/No flag for whether the line needs replenishment. | EnumWHSReplenDemandNoYes (enum) | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
ShipmentIdThe shipment linked to the line. | String (20)WHSShipmentId | No | WHSShipmentTable.ShipmentId | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity |
SkippedYes/No flag for whether the line was skipped. | EnumWHSSkippedNoYes (enum) | No | WHSWorkLineBiEntity | |
sortCodeNumber used to sort the lines. | IntegerWMSSortCode | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
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 | |
UnitIdUnit of measure for the quantities. | StringUnitOfMeasureSymbol | No | UnitOfMeasure.Symbol | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity |
UserIdThe work user linked to the line. | StringWHSUserId | No | WHSWorkUser.UserId | WHSWarehouseWorkLineEntityWHSWorkLineBiEntityWHSCycleCountingWarehouseWorkLineV3Entityand 2 more |
WMHEWorkLinePairIdIdentifier used to group work lines that belong together. | String (20)WMHEWorkLinePairId | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
WMSLocationIdThe warehouse location of the line. | StringWMSLocationId | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
WorkClassIdThe work class of the line. | StringWHSWorkClassId | No | WHSWorkLineBiEntity | |
WorkClosedUTCDateTimeDate and time when the work was closed, in UTC. | UtcDateTimeWHSWorkClosedUTCDateTime | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
WorkCreationFailedOnReservationYes/No flag showing that the reservation failed when work was created. | EnumWHSWorkCreationFailedOnReservationNoYes (enum) | No | WHSWorkLineBiEntity | |
WorkInProcessUTCDateTimeDate and time when the work went into process, in UTC. | UtcDateTimeWHSWorkInProcessUTCDateTime | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
WorkStatusStatus of the line, such as open, in process, closed or canceled. | EnumWHSWorkStatus (enum) | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
WorkStopYes/No flag for a stop transaction. | EnumWHSWorkStopNoYes (enum) | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
WorkTemplateLineRecIdPoints to the work template line the line came from. | Int64RefRecId | No | WHSWorkTemplateLine.RecId | WHSWorkLineBiEntity |
WorkTypeKind of work, such as pick, put, counting or print. | EnumWHSWorkType (enum) | Yes | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity | |
WorkTypeCustomCodeCode of the custom work type. | String (20)WHSWorkTypeCustomCode | No | WHSWorkTypeCustom.WorkTypeCustomCode | WHSWorkLineBiEntity |
ZoneIdThe zone of the line. | String (20)WHSZoneId | No | WHSWarehouseWorkLineEntityWHSWorkLineBiEntity |
Indexes (15)
WorkIdLineNumIdxPrimary indexReplacement keyUnique, alternate key.
LoadIdIdxLoadId,WorkId,WorkStatus,WMSLocationId,RecIdNot unique.
LoadLineRefRecIdIdxNot unique.
WorkTypeLocationIdItemWorkStatusIdxWorkType,WMSLocationId,ItemId,WorkStatusNot unique.
WorkTypeLocationidWorkStatusUnitIdIdxWorkType,WMSLocationId,WorkStatus,UnitId,WorkId,LineNumNot unique.
WorkClassTableIdxNot unique.
ShipmentIdWorkIdRecIdIdxNot unique.
InventTransIdxNot unique.
LocatedLPIdNot unique.
ContainerIdIdxNot unique.
ReplenishmentIdxItemId,InventDimId,WorkType,WorkStatus,InventQtyWork,WMSLocationIdNot unique.
WorkIdTypeStatusIdxNot unique.
OutboundSortPositionRecIdIdxNot unique.
WorkTypeStatusItemIdIdxNot unique.
WMHEWorkLinePairIdWorkStatusWMHEWorkLinePairId,WorkStatusNot unique.
Relations (18)
Each relation joins WHSWorkLine to another table on the fields shown.
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany WHSWorkLine records → zero or one InventDim record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany WHSWorkLine records → zero or one InventTable record
InventTransOrigin→InventTransOriginJoin on
InventTransId = InventTransOrigin.InventTransIdMany WHSWorkLine records → zero or one InventTransOrigin record
ProdTable→ProdTableJoin on
OrderNum = ProdTable.ProdIdMany WHSWorkLine records → zero or one ProdTable record
SalesTable→SalesTableJoin on
OrderNum = SalesTable.SalesIdMany WHSWorkLine records → zero or one SalesTable record
UnitOfMeasure→UnitOfMeasureJoin on
UnitId = UnitOfMeasure.SymbolMany WHSWorkLine records → zero or one UnitOfMeasure record
WHSContainerTable→WHSContainerTableJoin on
ContainerId = WHSContainerTable.ContainerIdMany WHSWorkLine records → zero or one WHSContainerTable record
WHSLicensePlate→WHSLicensePlateJoin on
LocatedLPId = WHSLicensePlate.LicensePlateIdMany WHSWorkLine records → zero or one WHSLicensePlate record
WHSLoadLine→WHSLoadLineJoin on
LoadLineRefRecId = WHSLoadLine.RecIdMany WHSWorkLine records → zero or one WHSLoadLine record
WHSLoadTable→WHSLoadTableJoin on
LoadId = WHSLoadTable.LoadIdMany WHSWorkLine records → zero or one WHSLoadTable record
WHSShipmentTable→WHSShipmentTableJoin on
ShipmentId = WHSShipmentTable.ShipmentIdMany WHSWorkLine records → zero or one WHSShipmentTable record
WHSWorkTable→WHSWorkTableJoin on
WorkId = WHSWorkTable.WorkIdMany WHSWorkLine records → exactly one WHSWorkTable record
WHSWorkTemplateLine→WHSWorkTemplateLineJoin on
WorkTemplateLineRecId = WHSWorkTemplateLine.RecIdMany WHSWorkLine records → zero or one WHSWorkTemplateLine record
WHSWorkTypeCustom→WHSWorkTypeCustomJoin on
WorkTypeCustomCode = WHSWorkTypeCustom.WorkTypeCustomCodeMany WHSWorkLine records → zero or one WHSWorkTypeCustom record
WHSWorkUser→WHSWorkUserJoin on
UserId = WHSWorkUser.UserIdMany WHSWorkLine records → zero or one WHSWorkUser record
WMSLocation→WMSLocationJoin on
WMSLocationId = WMSLocation.wMSLocationIdMany WHSWorkLine records → zero or one WMSLocation record
OutboundSortPosition→WHSOutboundSortPositionJoin on
OutboundSortPosition = WHSOutboundSortPosition.RecIdMany WHSWorkLine records → zero or one WHSOutboundSortPosition record
InventTransOriginIdSupply→InventTransOriginJoin on
InventTransOriginIdSupply = InventTransOrigin.RecIdMany WHSWorkLine records → zero or one InventTransOrigin record
Get this data out
Tables are not exposed directly. These public entities read from WHSWorkLine; use one of them in Power BI, Power Platform or a data management project.
WHSWarehouseWorkLineEntity· 31 fields from this tableWHSWorkLineBiEntity· 53 fields from this tableWHSCycleCountingWarehouseWorkLineV3Entity· 1 field from this tableWHSCycleCountingWarehouseWorkLineV2Entity· 1 field from this tableWHSCycleCountingWarehouseWorkLineEntity· 1 field from this table
Need help with WHSWorkLine in a report, an integration or a migration? Talk to Dr Dynamics.