Table
WHSDocumentRoutingTable
Document routing
Holds document routing rules. Each rule is identified by warehouse, work order type and sequence number. It can narrow by customer or vendor, carrier, worker, user, zone range and work template. It is used by several document routing entities.
- Table name
WHSDocumentRoutingTable- Module
Inventory- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
WHSandTMS- Primary index
None- Replacement key
SeqNumWorkTransTypeInventLocationId- Key fields
InventLocationId, WorkTransType, SeqNum- Model
Foundation
Fields (22)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
InventLocationIdWarehouse that the rule applies to. Points to the Warehouses table. | StringInventLocationId | Yes | InventLocation.InventLocationId | WHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 5 more |
WorkTransTypeWork order type that the rule applies to, such as purchase orders, sales orders or transfer issue. | EnumWHSWorkTransType (enum) | Yes | WHSWorkTemplateTable.WorkTransType | WHSWarehouseDocumentRoutingV3EntityWHSDocumentRoutingLabelLayoutLineEntityWHSDocumentRoutingPrinterEntity |
SeqNumNumber that sets the order of the rule. | IntegerWHSSeqNum | Yes | WHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 5 more | |
AccountNumCustomer or vendor account that the rule applies to. Points to the Customers or Vendors table. | String (20)CustVendAC | No | CustTable.AccountNumVendTable.AccountNum | WHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 2 more |
CarrierCodeCarrier that the rule applies to. Points to the Carrier table. | String (20)WHSCarrierCode | No | TMSCarrier.CarrierCode | WHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 3 more |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DocumentTypeType of document that the rule applies to. | StringWHSDocumentType | No | None | |
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 | |
NameName of the routing rule. | String (60)Name | No | WHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 3 more | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
QuerySaved query, stored in packed form, that filters the rule. | ContainerWHSQuery | No | WHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 3 more | |
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 | |
RunQueryYes/No choice that says whether the query is run. | EnumWHSRunQueryNoYes (enum) | No | WHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 3 more | |
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 | |
UserIdWork user that the rule applies to. Points to the Work users table. | StringWHSUserId | No | WHSWorkUser.UserId | WHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 3 more |
WorkerWorker that the rule applies to, held as a record ID. Points to the Worker table. | Int64WHSWorkerRecId | No | WHSWorker.Worker | None |
WorkTemplateCodeWork template that the rule applies to. Points to the Work templates table, together with the work order type. | String (20)WHSWorkTemplateCode | No | WHSWorkTemplateTable.WorkTemplateCode | WHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 3 more |
ZoneIdFromStart of the warehouse zone range. Points to the Warehouse zones table. | String (20)WHSZoneIdFrom | No | WHSZone.ZoneId | WHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 3 more |
ZoneIdToEnd of the warehouse zone range. Points to the Warehouse zones table. | String (20)WHSZoneIdTo | No | WHSZone.ZoneId | WHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 3 more |
Indexes (2)
SeqNumWorkTransTypeInventLocationIdReplacement keyInventLocationId,WorkTransType,SeqNumUnique, alternate key.
SeqNumIdxNot unique.
Relations (10)
Each relation joins WHSDocumentRoutingTable to another table on the fields shown.
CustTable_Sales→CustTableJoin on
WorkTransType = WHSWorkTransType::Sales,AccountNum = CustTable.AccountNumMany WHSDocumentRoutingTable records → zero or one CustTable record
CustTable_ReturnOrder→CustTableJoin on
WorkTransType = WHSWorkTransType::ReturnOrder,AccountNum = CustTable.AccountNumMany WHSDocumentRoutingTable records → zero or one CustTable record
InventLocation→InventLocationJoin on
InventLocationId = InventLocation.InventLocationIdMany WHSDocumentRoutingTable records → exactly one InventLocation record
TMSCarrier→TMSCarrierJoin on
CarrierCode = TMSCarrier.CarrierCodeMany WHSDocumentRoutingTable records → zero or one TMSCarrier record
VendTable_Purch→VendTableJoin on
WorkTransType = WHSWorkTransType::Purch,AccountNum = VendTable.AccountNumMany WHSDocumentRoutingTable records → zero or one VendTable record
WHSWorker→WHSWorkerJoin on
Worker = WHSWorker.WorkerMany WHSDocumentRoutingTable records → zero or one WHSWorker record
WHSWorkTemplateTable→WHSWorkTemplateTableJoin on
WorkTransType = WHSWorkTemplateTable.WorkTransType,WorkTemplateCode = WHSWorkTemplateTable.WorkTemplateCodeMany WHSDocumentRoutingTable records → zero or one WHSWorkTemplateTable record
WHSWorkUser→WHSWorkUserJoin on
UserId = WHSWorkUser.UserIdMany WHSDocumentRoutingTable records → zero or one WHSWorkUser record
WHSZoneFrom→WHSZoneJoin on
ZoneIdFrom = WHSZone.ZoneIdMany WHSDocumentRoutingTable records → zero or one WHSZone record
WHSZoneTo→WHSZoneJoin on
ZoneIdTo = WHSZone.ZoneIdMany WHSDocumentRoutingTable records → zero or one WHSZone record
Get this data out
Tables are not exposed directly. These public entities read from WHSDocumentRoutingTable; use one of them in Power BI, Power Platform or a data management project.
WHSPurchaseOrderDocumentRoutingV3Entity· 11 fields from this tableWHSReturnOrderDocumentRoutingV3Entity· 11 fields from this tableWHSSalesOrderDocumentRoutingV3Entity· 11 fields from this tableWHSWarehouseDocumentRoutingV3Entity· 11 fields from this tableWHSInboundShipmentOrderDocumentRoutingEntity· 11 fields from this tableWHSOutboundShipmentOrderDocumentRoutingEntity· 11 fields from this tableWHSDocumentRoutingLabelLayoutLineEntity· 3 fields from this tableWHSDocumentRoutingPrinterEntity· 3 fields from this table
Need help with WHSDocumentRoutingTable in a report, an integration or a migration? Talk to Dr Dynamics.