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 descriptionType / EDT / enumMandatoryReferencesIn public entities
InventLocationIdWarehouse that the rule applies to. Points to the Warehouses table.String
InventLocationId
YesInventLocation.InventLocationIdWHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 5 more
WorkTransTypeWork order type that the rule applies to, such as purchase orders, sales orders or transfer issue.Enum
WHSWorkTransType (enum)
YesWHSWorkTemplateTable.WorkTransTypeWHSWarehouseDocumentRoutingV3EntityWHSDocumentRoutingLabelLayoutLineEntityWHSDocumentRoutingPrinterEntity
SeqNumNumber that sets the order of the rule.Integer
WHSSeqNum
YesWHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 5 more
AccountNumCustomer or vendor account that the rule applies to. Points to the Customers or Vendors table.String (20)
CustVendAC
NoCustTable.AccountNumVendTable.AccountNumWHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 2 more
CarrierCodeCarrier that the rule applies to. Points to the Carrier table.String (20)
WHSCarrierCode
NoTMSCarrier.CarrierCodeWHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 3 more
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DocumentTypeType of document that the rule applies to.String
WHSDocumentType
NoNone
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
NameName of the routing rule.String (60)
Name
NoWHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 3 more
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QuerySaved query, stored in packed form, that filters the rule.Container
WHSQuery
NoWHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 3 more
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
RunQueryYes/No choice that says whether the query is run.Enum
WHSRunQuery
NoYes (enum)
NoWHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 3 more
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
UserIdWork user that the rule applies to. Points to the Work users table.String
WHSUserId
NoWHSWorkUser.UserIdWHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 3 more
WorkerWorker that the rule applies to, held as a record ID. Points to the Worker table.Int64
WHSWorkerRecId
NoWHSWorker.WorkerNone
WorkTemplateCodeWork template that the rule applies to. Points to the Work templates table, together with the work order type.String (20)
WHSWorkTemplateCode
NoWHSWorkTemplateTable.WorkTemplateCodeWHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 3 more
ZoneIdFromStart of the warehouse zone range. Points to the Warehouse zones table.String (20)
WHSZoneIdFrom
NoWHSZone.ZoneIdWHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 3 more
ZoneIdToEnd of the warehouse zone range. Points to the Warehouse zones table.String (20)
WHSZoneIdTo
NoWHSZone.ZoneIdWHSPurchaseOrderDocumentRoutingV3EntityWHSReturnOrderDocumentRoutingV3EntityWHSSalesOrderDocumentRoutingV3Entityand 3 more

Indexes (2)

Relations (10)

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

  • CustTable_Sales → CustTable

    Join on WorkTransType = WHSWorkTransType::Sales, AccountNum = CustTable.AccountNum

    Many WHSDocumentRoutingTable records → zero or one CustTable record

  • CustTable_ReturnOrder → CustTable

    Join on WorkTransType = WHSWorkTransType::ReturnOrder, AccountNum = CustTable.AccountNum

    Many WHSDocumentRoutingTable records → zero or one CustTable record

  • InventLocation → InventLocation

    Join on InventLocationId = InventLocation.InventLocationId

    Many WHSDocumentRoutingTable records → exactly one InventLocation record

  • TMSCarrier → TMSCarrier

    Join on CarrierCode = TMSCarrier.CarrierCode

    Many WHSDocumentRoutingTable records → zero or one TMSCarrier record

  • VendTable_Purch → VendTable

    Join on WorkTransType = WHSWorkTransType::Purch, AccountNum = VendTable.AccountNum

    Many WHSDocumentRoutingTable records → zero or one VendTable record

  • WHSWorker → WHSWorker

    Join on Worker = WHSWorker.Worker

    Many WHSDocumentRoutingTable records → zero or one WHSWorker record

  • WHSWorkTemplateTable → WHSWorkTemplateTable

    Join on WorkTransType = WHSWorkTemplateTable.WorkTransType, WorkTemplateCode = WHSWorkTemplateTable.WorkTemplateCode

    Many WHSDocumentRoutingTable records → zero or one WHSWorkTemplateTable record

  • WHSWorkUser → WHSWorkUser

    Join on UserId = WHSWorkUser.UserId

    Many WHSDocumentRoutingTable records → zero or one WHSWorkUser record

  • WHSZoneFrom → WHSZone

    Join on ZoneIdFrom = WHSZone.ZoneId

    Many WHSDocumentRoutingTable records → zero or one WHSZone record

  • WHSZoneTo → WHSZone

    Join on ZoneIdTo = WHSZone.ZoneId

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

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

Email sales@drdynamics.co.uk