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 descriptionType / EDT / enumMandatoryReferencesIn public entities
WorkIdThe work record this line belongs to.String (20)
WHSWorkId
YesWHSWorkTable.WorkIdWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
LineNumLine number within the work.Real
LineNum
YesWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
ActualTimeTime actually taken for the line.Real
WHSActualTime
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
AllocatedWMSLocationIdThe location proposed for the line.String
WMSLocationId
NoWHSWorkLineBiEntity
AskForNewLicensePlateYes/No setting for asking the user for a new license plate.Enum
WHSAskForNewLicensePlate
NoYes (enum)
NoWHSWorkLineBiEntity
AvailPhysicalQuantity of physical stock that is not reserved.Real
InventQtyAvailPhysical
NoWHSWorkLineBiEntity
CapturedWeightWeight recorded for the line.Real
WHSCapturedWeight
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
ContainerIdThe container linked to the line.String (25)
WHSContainerId
NoWHSContainerTable.ContainerIdWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoWHSWorkLineBiEntity
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoWHSWorkLineBiEntity
EstimatedTimeTime expected for the line.Real
WHSEstimatedTime
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
ExtraInventHandlingQtyExtra inventory quantity handled on the line.Real
WHSExtraInventHandlingQty
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
FEFOBatchIdBatch ID used for first-expired, first-out handling.String (20)
WHSFEFOBatchId
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
InventDimIdInventory dimensions of the line.String (20)
InventDimId
NoInventDim.inventDimIdWHSWorkLineBiEntity
InventoryTransactionOriginIdUnique ID of the warehouse inventory transaction origin.Guid
WHSInventoryTransactionOriginId
NoWHSWorkLineBiEntity
InventQtyRemainQuantity remaining, in the inventory unit.Real
WHSInventQtyRemain
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
InventQtyWorkWork quantity, in the inventory unit.Real
WHSInventQtyWork
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
InventTransIdLot ID of the inventory transaction, taken from the originator.String (20)
InventTransId
NoInventTransOrigin.InventTransIdWHSWorkLineBiEntity
InventTransOriginIdSupplyPoints to the marked inventory transaction originator.Int64
InventTransOriginIdMarked
NoInventTransOrigin.RecIdWHSWorkLineBiEntity
IsAnchoredYes/No flag for whether the line is anchored.Enum
WHSIsAnchored
NoYes (enum)
NoWHSWorkLineBiEntity
ItemIdThe item number of the line.String (20)
ItemId
NoInventTable.ItemIdWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
ItemSetIdUnique ID of an inventory item set. Purpose not clear from the metadata.low confidenceGuid
WHSInventoryItemSetId
NoWHSWorkLineBiEntity
ItemSetIdNoBelowLocDimUnique ID of an inventory item set. Purpose not clear from the metadata.low confidenceGuid
WHSInventoryItemSetId
NoWHSWorkLineBiEntity
LoadIdThe load linked to the line.String (20)
WHSLoadId
NoWHSLoadTable.LoadIdWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
LoadLineRefRecIdPoints to the related load line.Int64
RefRecId
NoWHSLoadLine.RecIdWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
LocatedLPIdThe license plate that is located at this line.String (25)
WHSLocatedLPId
NoWHSLicensePlate.LicensePlateIdWHSWorkLineBiEntity
MandatoryYes/No flag for whether the line is mandatory.Enum
WHSMandatory
NoYes (enum)
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoWHSWorkLineBiEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoWHSWorkLineBiEntity
OrderCommittedInventDimIdInventory dimensions linked to the committed order. Purpose is partly inferred.low confidenceString (20)
InventDimId
NoWHSWorkLineBiEntity
OrderNumNumber of the order, such as a production or sales order, that the line is for.String (20)
WHSOrderNum
NoProdTable.ProdIdSalesTable.SalesIdWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
OrigPackingWorkTargetLicensePlateIdLicense plate linked to the original packing work.low confidenceString (25)
WHSLicensePlateId
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
OutboundSortPositionPoints to the outbound sorting position record.Int64
WHSOutboundSortPositionRecId
NoWHSOutboundSortPosition.RecIdWHSWorkLineBiEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QtyRemainQuantity remaining, in the line unit.Real
WHSQtyRemain
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
QtyWorkWork quantity, in the line unit.Real
WHSQtyWork
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
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
ReplenDemandYes/No flag for whether the line needs replenishment.Enum
WHSReplenDemand
NoYes (enum)
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
ShipmentIdThe shipment linked to the line.String (20)
WHSShipmentId
NoWHSShipmentTable.ShipmentIdWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
SkippedYes/No flag for whether the line was skipped.Enum
WHSSkipped
NoYes (enum)
NoWHSWorkLineBiEntity
sortCodeNumber used to sort the lines.Integer
WMSSortCode
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
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
UnitIdUnit of measure for the quantities.String
UnitOfMeasureSymbol
NoUnitOfMeasure.SymbolWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
UserIdThe work user linked to the line.String
WHSUserId
NoWHSWorkUser.UserIdWHSWarehouseWorkLineEntityWHSWorkLineBiEntityWHSCycleCountingWarehouseWorkLineV3Entityand 2 more
WMHEWorkLinePairIdIdentifier used to group work lines that belong together.String (20)
WMHEWorkLinePairId
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
WMSLocationIdThe warehouse location of the line.String
WMSLocationId
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
WorkClassIdThe work class of the line.String
WHSWorkClassId
NoWHSWorkLineBiEntity
WorkClosedUTCDateTimeDate and time when the work was closed, in UTC.UtcDateTime
WHSWorkClosedUTCDateTime
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
WorkCreationFailedOnReservationYes/No flag showing that the reservation failed when work was created.Enum
WHSWorkCreationFailedOnReservation
NoYes (enum)
NoWHSWorkLineBiEntity
WorkInProcessUTCDateTimeDate and time when the work went into process, in UTC.UtcDateTime
WHSWorkInProcessUTCDateTime
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
WorkStatusStatus of the line, such as open, in process, closed or canceled.Enum
WHSWorkStatus (enum)
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
WorkStopYes/No flag for a stop transaction.Enum
WHSWorkStop
NoYes (enum)
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
WorkTemplateLineRecIdPoints to the work template line the line came from.Int64
RefRecId
NoWHSWorkTemplateLine.RecIdWHSWorkLineBiEntity
WorkTypeKind of work, such as pick, put, counting or print.Enum
WHSWorkType (enum)
YesWHSWarehouseWorkLineEntityWHSWorkLineBiEntity
WorkTypeCustomCodeCode of the custom work type.String (20)
WHSWorkTypeCustomCode
NoWHSWorkTypeCustom.WorkTypeCustomCodeWHSWorkLineBiEntity
ZoneIdThe zone of the line.String (20)
WHSZoneId
NoWHSWarehouseWorkLineEntityWHSWorkLineBiEntity

Indexes (15)

Relations (18)

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

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId

    Many WHSWorkLine records → zero or one InventDim record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many WHSWorkLine records → zero or one InventTable record

  • InventTransOrigin → InventTransOrigin

    Join on InventTransId = InventTransOrigin.InventTransId

    Many WHSWorkLine records → zero or one InventTransOrigin record

  • ProdTable → ProdTable

    Join on OrderNum = ProdTable.ProdId

    Many WHSWorkLine records → zero or one ProdTable record

  • SalesTable → SalesTable

    Join on OrderNum = SalesTable.SalesId

    Many WHSWorkLine records → zero or one SalesTable record

  • UnitOfMeasure → UnitOfMeasure

    Join on UnitId = UnitOfMeasure.Symbol

    Many WHSWorkLine records → zero or one UnitOfMeasure record

  • WHSContainerTable → WHSContainerTable

    Join on ContainerId = WHSContainerTable.ContainerId

    Many WHSWorkLine records → zero or one WHSContainerTable record

  • WHSLicensePlate → WHSLicensePlate

    Join on LocatedLPId = WHSLicensePlate.LicensePlateId

    Many WHSWorkLine records → zero or one WHSLicensePlate record

  • WHSLoadLine → WHSLoadLine

    Join on LoadLineRefRecId = WHSLoadLine.RecId

    Many WHSWorkLine records → zero or one WHSLoadLine record

  • WHSLoadTable → WHSLoadTable

    Join on LoadId = WHSLoadTable.LoadId

    Many WHSWorkLine records → zero or one WHSLoadTable record

  • WHSShipmentTable → WHSShipmentTable

    Join on ShipmentId = WHSShipmentTable.ShipmentId

    Many WHSWorkLine records → zero or one WHSShipmentTable record

  • WHSWorkTable → WHSWorkTable

    Join on WorkId = WHSWorkTable.WorkId

    Many WHSWorkLine records → exactly one WHSWorkTable record

  • WHSWorkTemplateLine → WHSWorkTemplateLine

    Join on WorkTemplateLineRecId = WHSWorkTemplateLine.RecId

    Many WHSWorkLine records → zero or one WHSWorkTemplateLine record

  • WHSWorkTypeCustom → WHSWorkTypeCustom

    Join on WorkTypeCustomCode = WHSWorkTypeCustom.WorkTypeCustomCode

    Many WHSWorkLine records → zero or one WHSWorkTypeCustom record

  • WHSWorkUser → WHSWorkUser

    Join on UserId = WHSWorkUser.UserId

    Many WHSWorkLine records → zero or one WHSWorkUser record

  • WMSLocation → WMSLocation

    Join on WMSLocationId = WMSLocation.wMSLocationId

    Many WHSWorkLine records → zero or one WMSLocation record

  • OutboundSortPosition → WHSOutboundSortPosition

    Join on OutboundSortPosition = WHSOutboundSortPosition.RecId

    Many WHSWorkLine records → zero or one WHSOutboundSortPosition record

  • InventTransOriginIdSupply → InventTransOrigin

    Join on InventTransOriginIdSupply = InventTransOrigin.RecId

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

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

Email sales@drdynamics.co.uk