Table
WHSWorkTable
Work
Holds one header record per warehouse work, identified by Work ID. It records the status, work order type, warehouse, site, wave, load, shipment and the user who created, cancelled or closed it. It links to source orders such as purchase, sales, transfer, production and quality orders. The individual work lines are stored elsewhere.
- Table name
WHSWorkTable- Module
Inventory- Table group
WorksheetHeader- Table type
Regular- Data per company
Yes- Configuration key
WHSandTMS- Primary index
WorkIdx- Replacement key
WorkIdx- Key fields
WorkId- Model
Foundation
Fields (61)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
WorkIdUnique ID of the work. It is the key of this table. | String (20)WHSWorkId | Yes | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity | |
ActualTimeTime the work actually took, as a number. | RealWHSActualTime | No | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity | |
AutoExecuteYes/No flag showing whether the work is set to be processed automatically. | EnumWHSAutoExecuteNoYes (enum) | No | WHSWorkTableBiEntity | |
CancelReplenWhenDemandCanceledYes/No flag for cancelling replenishment when its demand is cancelled. | EnumWHSCancelReplenWhenDemandCanceledNoYes (enum) | No | WHSWorkTableBiEntity | |
ClusterProfileIdCluster profile linked to this work. | String (20)WHSClusterProfileId | No | WHSClusterProfile.ClusterProfileId | WHSWorkTableBiEntity |
CombinedWorkIdID of the combined work that this work was merged into. | String (20)WHSCombinedWorkId | No | WHSWorkTableBiEntity | |
ContainerIdContainer linked to this work. Points to a record in the containers table. | String (25)WHSContainerId | No | WHSContainerTable.ContainerId | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | WHSWorkTableBiEntityWHSCycleCountingWarehouseWorkLineV3EntityWHSCycleCountingWarehouseWorkLineV2Entityand 1 more | |
CycleCountPlanOverviewReference to the cycle count plan overview record linked to this work. | Int64RefRecId | No | WHSCycleCountPlanOverview.RecId | WHSWorkTableBiEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | WHSWorkTableBiEntity | |
DispositionCodeDisposition code linked to this work. Points to the disposition codes table. | String (20)WHSDispositionCode | No | WHSDispositionTable.DispositionCode | WHSWorkTableBiEntity |
EstimatedTimeExpected time for the work, as a number. | RealWHSEstimatedTime | No | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity | |
ExecutedWithoutUserLocationYes/No flag. The name suggests the work was run without a user location.low confidence | EnumWHSExecutedWithoutUserLocationNoYes (enum) | No | WHSWorkTableBiEntity | |
FrozenYes/No flag showing whether the wave is blocked. | EnumWHSFrozenNoYes (enum) | No | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity | |
HasWorkLineLoadLineDetailsYes/No flag showing whether work lines have load line details. | EnumWHSWorkTableHasWorkLineLoadLineDetailsNoYes (enum) | No | WHSWorkTableBiEntity | |
ImmediateReplenishmentUnitIdUnit of measure used for immediate replenishment. | StringUnitOfMeasureSymbol | No | UnitOfMeasure.Symbol | WHSWorkTableBiEntity |
InventJournalIdInventory journal linked to this work. | String (20)InventJournalId | No | InventJournalTable.JournalId | WHSWorkTableBiEntity |
InventLocationIdWarehouse where the work takes place. | StringInventLocationId | Yes | InventLocation.InventLocationId | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity |
InventoryAdjustmentJournalIdWarehouse inventory adjustment journal linked to this work. | String (20)WHSInventoryAdjustmentJournalId | No | WHSInventoryAdjustmentJournal.JournalId | WHSWorkTableBiEntity |
InventoryTransactionMechanismChooses between inventory transactions and warehouse-specific inventory transactions. | EnumWHSInventoryTransactionMechanismWHSInventoryTransactionMechanismEnum (enum) | No | WHSWorkTableBiEntity | |
InventQualityOrderIdQuality order linked to this work. | String (20)InventQualityOrderId | No | InventQualityOrderTable.QualityOrderId | WHSWorkTableBiEntity |
InventSiteIdSite where the work takes place. | StringInventSiteId | Yes | InventSite.SiteId | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity |
IsGTDIssueSupport_RUPurpose not clear from the metadata. Used for Russia.low confidence | EnumNoYes (enum) | No | WHSWorkTableBiEntity | |
IsPartialCycleCountWorkYes/No flag showing whether this is partial cycle count work. | EnumWHSIsPartialCycleCountWorkNoYes (enum) | No | WHSWorkTableBiEntity | |
ITMGoodsInTransitIdGoods in transit order linked to this work. | String (20)ITMGoodsInTransitId | No | ITMGoodsInTransitOrder.GITId | WHSWorkTableBiEntity |
ITMRegisteredLicensePlateIdLicense plate registered as the target for this work. | String (25)WHSTargetLicensePlateId | No | WHSLicensePlate.LicensePlateId | WHSWorkTableBiEntity |
LoadIdLoad that this work belongs to. | String (20)WHSLoadId | No | WHSLoadTable.LoadId | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity |
LockedUserWork user who has the work locked. | StringWHSLockedUser | No | WHSWorkUser.UserId | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | WHSWorkTableBiEntity | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | WHSWorkTableBiEntity | |
OrderNumNumber of the source order, such as a quality, transfer or production order. | String (20)WHSOrderNum | No | InventQualityOrderTable.QualityOrderIdInventTransferTable.TransferIdProdTable.ProdIdPurchTable.PurchIdSalesTable.SalesIdWHSInboundShipmentOrder.InboundShipmentOrderIdWHSOutboundShipmentOrder.OutboundShipmentOrderId | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity |
PackingWorkRemainingQtyCalculationMechanismSetting that chooses between two options for packing work: work quantity or remaining quantity. | EnumWHSPackingWorkRemainingQtyCalculationMechanism (enum) | No | WHSWorkTableBiEntity | |
ParkedAtLocationIdWarehouse location where the work is currently parked. Empty if it is not parked. | StringWHSParkedAtLocationId | No | WMSLocation.wMSLocationId | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity |
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 | |
ReplenishmentDependentWorkBlockingPolicyChooses whether replenishment blocks the whole work order or only single work lines. | EnumWHSReplenishmentDependentWorkBlockingPolicy (enum) | No | WHSWorkTableBiEntity | |
ShipmentIdShipment that this work belongs to. | String (20)WHSShipmentId | No | WHSShipmentTable.ShipmentId | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity |
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 | |
TargetLicensePlateIdLicense plate that is the target of the work. | String (25)WHSTargetLicensePlateId | No | WHSLicensePlate.LicensePlateId | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity |
TransTxtFree-text description of the work. | String (60)TransTxt | No | WHSWorkTableBiEntity | |
UserManuallyAssignedYes/No flag showing whether a user was assigned to the work by hand. | EnumWHSUserManuallyAssignedNoYes (enum) | No | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity | |
UseWorkForWaveReplenYes/No flag that lets wave demand use quantities that are not reserved. | EnumWHSUseWorkForWaveReplenNoYes (enum) | No | WHSWorkTableBiEntity | |
WarehouseInventoryTransactionGroupingMechanismShows whether warehouse inventory transactions are grouped or ungrouped. | EnumWHSWarehouseInventoryTransactionGroupingMechanism (enum) | No | WHSWorkTableBiEntity | |
WaveIdWave that the work was created for. | String (20)WHSWaveId | No | WHSWaveTable.WaveId | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity |
WorkBuildIdNumber that identifies the work creation run that produced this work. | String (20)WHSWorkBuildId | No | WHSWorkTableBiEntity | |
WorkCancelledByUserUser who cancelled the work. | StringWHSWorkCancelledByUser | No | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity | |
WorkCancelledUTCDateTimeDate and time, in UTC, when the work was cancelled. | UtcDateTimeWHSWorkCancelledUTCDateTime | No | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity | |
WorkClosedUTCDateTimeDate and time, in UTC, when the work was closed. | UtcDateTimeWHSWorkClosedUTCDateTime | No | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntityWHSCycleCountingWarehouseWorkLineV3Entityand 2 more | |
WorkCountErrorShort error message linked to the work count. | String (30)WHSWorkCountError | No | WHSWorkTableBiEntity | |
WorkCreatedByUser who created the work. | StringUserId | No | WHSWorkTableBiEntity | |
WorkCreationFailedOnReservationYes/No flag showing whether work creation failed at the reservation step. | EnumWHSWorkCreationFailedOnReservationNoYes (enum) | No | WHSWorkTableBiEntity | |
WorkInProcessUTCDateTimeDate and time, in UTC, when the work went into process. | UtcDateTimeWHSWorkInProcessUTCDateTime | No | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity | |
WorkIsMultiSKUYes/No flag showing whether the work covers more than one item (SKU). | EnumWHSWorkIsMultiSKUNoYes (enum) | No | WHSWorkTableBiEntity | |
WorkManuallyCompletedByUser who completed the work by hand. | StringWHSWorkManuallyCompletedBy | No | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity | |
WorkPoolIdWork pool that the work belongs to. | String (20)WHSWorkPoolId | No | WHSWorkPool.WorkPoolId | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity |
WorkPriorityPriority number of the work. | IntegerWHSWorkPriority | No | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity | |
WorkStatusCurrent status of the work, such as Open, In process, Closed or Canceled. | EnumWHSWorkStatus (enum) | No | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntityWHSCycleCountingWarehouseWorkLineV3Entityand 2 more | |
WorkTemplateCodeWork template used for this work. | String (20)WHSWorkTemplateCode | No | WHSWorkTemplateTable.WorkTemplateCode | WHSWorkTableBiEntity |
WorkTransTypeType of work order, such as purchase orders, sales orders or transfer issue. | EnumWHSWorkTransType (enum) | Yes | WHSWorkTemplateTable.WorkTransType | WHSWarehouseWorkHeaderEntityWHSWorkTableBiEntity |
Indexes (14)
WorkIdxPrimary indexReplacement keyUnique, alternate key.
LoadIdWorkStatusIdxNot unique.
TargetLicensePlateIdWorkStatusIdxTargetLicensePlateId,WorkStatusNot unique.
ShipmentIdIdxNot unique.
WaveIdNot unique.
CycleCountPlanOverviewIdxNot unique.
WorkBuildIdIdxNot unique.
ContainerIdIdxNot unique.
WorkListIdxInventLocationId,WorkStatus,Frozen,LockedUserNot unique.
OpenReplenWorkStatusIdxInventLocationId,WorkTransType,UseWorkForWaveReplen,ImmediateReplenishmentUnitId,WorkStatusNot unique.
CombinedWorkIdIdxNot unique.
InventQualityOrderIdIdxInventQualityOrderId,WorkStatus,RecIdNot unique.
WorkClosedUTCDateTimeIdxNot unique.
OrderNumTransTypeIdxNot unique.
Relations (34)
Each relation joins WHSWorkTable to another table on the fields shown.
InventJournalTable→InventJournalTableJoin on
InventJournalId = InventJournalTable.JournalIdMany WHSWorkTable records → zero or one InventJournalTable record
InventLocation→InventLocationJoin on
InventLocationId = InventLocation.InventLocationIdOne or more WHSWorkTable records → exactly one InventLocation record
InventSite→InventSiteJoin on
InventSiteId = InventSite.SiteIdOne or more WHSWorkTable records → exactly one InventSite record
ParkedAtLocation→WMSLocationJoin on
ParkedAtLocationId = WMSLocation.wMSLocationId,InventLocationId = WMSLocation.InventLocationIdMany WHSWorkTable records → zero or one WMSLocation record
ProdTablePick→ProdTableJoin on
WorkTransType = WHSWorkTransType::ProdPick,OrderNum = ProdTable.ProdIdMany WHSWorkTable records → zero or one ProdTable record
ProdTablePut→ProdTableJoin on
WorkTransType = WHSWorkTransType::ProdPut,OrderNum = ProdTable.ProdIdMany WHSWorkTable records → zero or one ProdTable record
PurchTable→PurchTableJoin on
WorkTransType = WHSWorkTransType::Purch,OrderNum = PurchTable.PurchIdMany WHSWorkTable records → zero or one PurchTable record
SalesTable→SalesTableJoin on
WorkTransType = WHSWorkTransType::Sales,OrderNum = SalesTable.SalesIdMany WHSWorkTable records → zero or one SalesTable record
TransferOrderIssue→InventTransferTableJoin on
WorkTransType = WHSWorkTransType::TransferIssue,OrderNum = InventTransferTable.TransferIdMany WHSWorkTable records → zero or one InventTransferTable record
TransferOrderReciept→InventTransferTableJoin on
WorkTransType = WHSWorkTransType::TransferReceipt,OrderNum = InventTransferTable.TransferIdMany WHSWorkTable records → zero or one InventTransferTable record
UserInfoCancelled→UserInfoJoin on
WorkCancelledByUser = UserInfo.idMany WHSWorkTable records → zero or one UserInfo record
UserInfoCompleted→UserInfoJoin on
WorkManuallyCompletedBy = UserInfo.idMany WHSWorkTable records → zero or one UserInfo record
WHSContainerTable→WHSContainerTableJoin on
ContainerId = WHSContainerTable.ContainerIdMany WHSWorkTable records → zero or one WHSContainerTable record
WHSCycleCountPlanOverview→WHSCycleCountPlanOverviewJoin on
CycleCountPlanOverview = WHSCycleCountPlanOverview.RecIdExactly one WHSWorkTable record → zero or one WHSCycleCountPlanOverview record
WHSDispositionTable→WHSDispositionTableJoin on
DispositionCode = WHSDispositionTable.DispositionCodeMany WHSWorkTable records → exactly one WHSDispositionTable record
WHSLicensePlate→WHSLicensePlateJoin on
TargetLicensePlateId = WHSLicensePlate.LicensePlateIdMany WHSWorkTable records → zero or one WHSLicensePlate record
WHSLoadTable→WHSLoadTableJoin on
LoadId = WHSLoadTable.LoadIdMany WHSWorkTable records → zero or one WHSLoadTable record
WHSShipmentTable→WHSShipmentTableJoin on
ShipmentId = WHSShipmentTable.ShipmentIdMany WHSWorkTable records → zero or one WHSShipmentTable record
WHSWaveTable→WHSWaveTableJoin on
WaveId = WHSWaveTable.WaveIdMany WHSWorkTable records → zero or one WHSWaveTable record
WHSWorkPool→WHSWorkPoolJoin on
WorkPoolId = WHSWorkPool.WorkPoolIdExactly one WHSWorkTable record → zero or one WHSWorkPool record
WHSWorkTable→WHSWorkTableJoin on
WorkId = WHSWorkTable.WorkIdExactly one WHSWorkTable record → exactly one WHSWorkTable record
WHSWorkTemplateTable→WHSWorkTemplateTableJoin on
WorkTemplateCode = WHSWorkTemplateTable.WorkTemplateCode,WorkTransType = WHSWorkTemplateTable.WorkTransTypeMany WHSWorkTable records → zero or one WHSWorkTemplateTable record
WHSWorkUserCreated→UserInfoJoin on
WorkCreatedBy = UserInfo.idMany WHSWorkTable records → exactly one UserInfo record
WHSWorkUserLocked→WHSWorkUserJoin on
LockedUser = WHSWorkUser.UserIdMany WHSWorkTable records → zero or one WHSWorkUser record
UnitOfMeasureImmediateReplenUnit→UnitOfMeasureJoin on
ImmediateReplenishmentUnitId = UnitOfMeasure.SymbolMany WHSWorkTable records → zero or one UnitOfMeasure record
InventQualityOrderTable→InventQualityOrderTableJoin on
InventQualityOrderId = InventQualityOrderTable.QualityOrderIdMany WHSWorkTable records → zero or one InventQualityOrderTable record
WHSClusterProfile→WHSClusterProfileJoin on
ClusterProfileId = WHSClusterProfile.ClusterProfileIdMany WHSWorkTable records → zero or one WHSClusterProfile record
InventQualityOrderTableByOrderNum→InventQualityOrderTableJoin on
WorkTransType = WHSWorkTransType::QualityOrder,OrderNum = InventQualityOrderTable.QualityOrderIdMany WHSWorkTable records → zero or one InventQualityOrderTable record
ITMGoodsInTransitPurchTable→PurchTableJoin on
WorkTransType = WHSWorkTransType::ITMGoodsInTransit,OrderNum = PurchTable.PurchIdMany WHSWorkTable records → zero or one PurchTable record
ITMGoodsInTransitOrder→ITMGoodsInTransitOrderJoin on
ITMGoodsInTransitId = ITMGoodsInTransitOrder.GITIdMany WHSWorkTable records → exactly one ITMGoodsInTransitOrder record
ITMRegisteredLicensePlate→WHSLicensePlateJoin on
ITMRegisteredLicensePlateId = WHSLicensePlate.LicensePlateIdMany WHSWorkTable records → zero or one WHSLicensePlate record
WHSInventoryAdjustmentJournal→WHSInventoryAdjustmentJournalJoin on
InventoryAdjustmentJournalId = WHSInventoryAdjustmentJournal.JournalIdZero or one WHSWorkTable record → zero or one WHSInventoryAdjustmentJournal record
WHSOutboundShipmentOrder→WHSOutboundShipmentOrderJoin on
WorkTransType = WHSWorkTransType::OutboundShipmentOrder,OrderNum = WHSOutboundShipmentOrder.OutboundShipmentOrderIdMany WHSWorkTable records → zero or one WHSOutboundShipmentOrder record
WHSInboundShipmentOrder→WHSInboundShipmentOrderJoin on
WorkTransType = WHSWorkTransType::InboundShipmentOrder,OrderNum = WHSInboundShipmentOrder.InboundShipmentOrderIdMany WHSWorkTable records → zero or one WHSInboundShipmentOrder record
Get this data out
Tables are not exposed directly. These public entities read from WHSWorkTable; use one of them in Power BI, Power Platform or a data management project.
WHSWarehouseWorkHeaderEntity· 24 fields from this tableWHSWorkTableBiEntity· 56 fields from this tableWHSCycleCountingWarehouseWorkLineV3Entity· 3 fields from this tableWHSCycleCountingWarehouseWorkLineV2Entity· 3 fields from this tableWHSCycleCountingWarehouseWorkLineEntity· 3 fields from this table
Need help with WHSWorkTable in a report, an integration or a migration? Talk to Dr Dynamics.