Table

WHSWorkTemplateTable

Work templates

Holds work templates, identified by template code and work order type. A template sets the warehouse, site, work pool, priority and sequence. It also sets limits for quantity, volume, weight, pick lines and estimated pick time, and stores a query that selects the work it applies to. It can link to a license plate label build configuration and a dynamic work classification rule.

Table name
WHSWorkTemplateTable
Module
Inventory
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
WorkTemplateCodeWorkTransTypeIdx
Replacement key
WorkTemplateCodeWorkTransTypeIdx
Key fields
WorkTemplateCode, WorkTransType
Model
Foundation

Fields (35)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
WorkTemplateCodeCode that identifies the work template.String (20)
WHSWorkTemplateCode
YesWHSWarehouseWorkTemplateV3EntityWHSWarehouseWorkTemplateWorkBreakEntity
WorkTransTypeType of work order that the template applies to.Enum
WHSWorkTransType (enum)
YesWHSWarehouseWorkTemplateV3EntityWHSWarehouseWorkTemplateWorkBreakEntity
AutoExecuteYes/No flag showing whether work from this template is processed automatically.Enum
WHSAutoExecute
NoYes (enum)
NoWHSWarehouseWorkTemplateV3Entity
BatchAllocationStrategyBatch allocation order: FEFO or LEFO.Enum
WHSBatchAllocationStrategy (enum)
NoWHSWarehouseWorkTemplateV3Entity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultWorkPriorityDefault priority number given to work from this template.Integer
WHSWorkPriority
NoWHSWarehouseWorkTemplateV3Entity
InventLocationIdWarehouse that the template applies to.String
InventLocationId
NoInventLocation.InventLocationIdNone
InventSiteIdSite that the template applies to.String
InventSiteId
NoInventSite.SiteIdNone
LicensePlateLabelBuildConfigLicense plate label build configuration linked to the template.Int64
WHSLicensePlateLabelBuildConfigRecId
NoWhsLicensePlateLabelBuildConfig.RecIdWHSWarehouseWorkTemplateV3Entity
MaxEstimatedPickTimeMaximum estimated pick time allowed.Real
WHSMaxEstimatedPickTime
NoWHSWarehouseWorkTemplateV3Entity
MaxPickLinesMaximum number of pick lines allowed.Integer
WHSMaxPickLines
NoWHSWarehouseWorkTemplateV3Entity
MaxQtyMaximum quantity allowed.Real
WHSMaxQty
NoWHSWarehouseWorkTemplateV3Entity
MaxQtyWorkHeaderMaximum total inventory quantity for one work header.Real
WHSMaxQtyWorkHeader
NoWHSWarehouseWorkTemplateV3Entity
MaxUnitIdUnit of measure for the maximum quantity.String
WHSMaxUnitId
NoUnitOfMeasure.SymbolWHSWarehouseWorkTemplateV3Entity
MaxVolumeMaximum volume allowed.Real
WHSMaxVolume
NoWHSWarehouseWorkTemplateV3Entity
MaxVolumeWorkHeaderMaximum total volume for one work header.Real
WHSMaxVolumeWorkHeader
NoWHSWarehouseWorkTemplateV3Entity
MaxWeightMaximum weight allowed.Real
WHSMaxWeight
NoWHSWarehouseWorkTemplateV3Entity
MaxWeightWorkHeaderMaximum total weight for one work header.Real
WHSMaxWeightWorkHeader
NoWHSWarehouseWorkTemplateV3Entity
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
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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
ReplenishmentDependentWorkBlockingPolicyChooses whether replenishment blocks the whole work order or only single work lines.Enum
WHSReplenishmentDependentWorkBlockingPolicy (enum)
NoWHSWarehouseWorkTemplateV3Entity
SplitCrossDockWorkAtLicensePlateReceivingYes/No flag for splitting cross-docking work when license plates are received.Enum
WHSSplitCrossDockWorkAtLicensePlateReceiving
NoYes (enum)
NoWHSWarehouseWorkTemplateV3Entity
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
UsePackingQtyYes/No flag to use the packing quantity as the maximum.Enum
WHSUsePackingQty
NoYes (enum)
NoWHSWarehouseWorkTemplateV3Entity
WorkPoolIdWork pool that the template assigns work to.String (20)
WHSWorkPoolId
NoWHSWorkPool.WorkPoolIdWHSWarehouseWorkTemplateV3Entity
WorkTemplateClassificationRuleDynamic work classification rule linked to the template.String (20)
WHSWorkTemplateClassificationRuleId
NoWHSWorkTemplateClassificationRule.WorkTemplateClassificationRuleIdWHSWarehouseWorkTemplateV3Entity
WorkTemplateDescDescription of the work template.String (60)
WHSWorkTemplateDesc
NoWHSWarehouseWorkTemplateV3Entity
WorkTemplateErrorTextError message text linked to the template.String (250)
WHSWorkTemplateErrorText
NoNone
WorkTemplatePrioritySequence number that sets the order of templates.Integer
WHSWorkTemplatePriority
NoWHSWarehouseWorkTemplateV3Entity
WorkTemplateQueryStored query that selects the records the template applies to.Container
WHSWorkTemplateQuery
NoWHSWarehouseWorkTemplateV3Entity
WorkTemplateValidYes/No flag showing whether the template is valid.Enum
WHSWorkTemplateValid
NoYes (enum)
NoNone

Indexes (3)

Relations (6)

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

  • InventLocation → InventLocation

    Join on InventLocationId = InventLocation.InventLocationId

    Many WHSWorkTemplateTable records → zero or one InventLocation record

  • InventSite → InventSite

    Join on InventSiteId = InventSite.SiteId

    Many WHSWorkTemplateTable records → zero or one InventSite record

  • UnitOfMeasure → UnitOfMeasure

    Join on MaxUnitId = UnitOfMeasure.Symbol

    Many WHSWorkTemplateTable records → zero or one UnitOfMeasure record

  • WHSWorkPool → WHSWorkPool

    Join on WorkPoolId = WHSWorkPool.WorkPoolId

    Many WHSWorkTemplateTable records → zero or one WHSWorkPool record

  • WHSLicensePlateLabelBuildConfig → WHSLicensePlateLabelBuildConfig

    Join on LicensePlateLabelBuildConfig = WHSLicensePlateLabelBuildConfig.RecId

    Many WHSWorkTemplateTable records → zero or one WHSLicensePlateLabelBuildConfig record

  • WHSWorkTemplateClassificationRule → WHSWorkTemplateClassificationRule

    Join on WorkTemplateClassificationRule = WHSWorkTemplateClassificationRule.WorkTemplateClassificationRuleId

    Many WHSWorkTemplateTable records → zero or one WHSWorkTemplateClassificationRule record

Get this data out

Tables are not exposed directly. These public entities read from WHSWorkTemplateTable; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk