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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
WorkTemplateCodeCode that identifies the work template. | String (20)WHSWorkTemplateCode | Yes | WHSWarehouseWorkTemplateV3EntityWHSWarehouseWorkTemplateWorkBreakEntity | |
WorkTransTypeType of work order that the template applies to. | EnumWHSWorkTransType (enum) | Yes | WHSWarehouseWorkTemplateV3EntityWHSWarehouseWorkTemplateWorkBreakEntity | |
AutoExecuteYes/No flag showing whether work from this template is processed automatically. | EnumWHSAutoExecuteNoYes (enum) | No | WHSWarehouseWorkTemplateV3Entity | |
BatchAllocationStrategyBatch allocation order: FEFO or LEFO. | EnumWHSBatchAllocationStrategy (enum) | No | WHSWarehouseWorkTemplateV3Entity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultWorkPriorityDefault priority number given to work from this template. | IntegerWHSWorkPriority | No | WHSWarehouseWorkTemplateV3Entity | |
InventLocationIdWarehouse that the template applies to. | StringInventLocationId | No | InventLocation.InventLocationId | None |
InventSiteIdSite that the template applies to. | StringInventSiteId | No | InventSite.SiteId | None |
LicensePlateLabelBuildConfigLicense plate label build configuration linked to the template. | Int64WHSLicensePlateLabelBuildConfigRecId | No | WhsLicensePlateLabelBuildConfig.RecId | WHSWarehouseWorkTemplateV3Entity |
MaxEstimatedPickTimeMaximum estimated pick time allowed. | RealWHSMaxEstimatedPickTime | No | WHSWarehouseWorkTemplateV3Entity | |
MaxPickLinesMaximum number of pick lines allowed. | IntegerWHSMaxPickLines | No | WHSWarehouseWorkTemplateV3Entity | |
MaxQtyMaximum quantity allowed. | RealWHSMaxQty | No | WHSWarehouseWorkTemplateV3Entity | |
MaxQtyWorkHeaderMaximum total inventory quantity for one work header. | RealWHSMaxQtyWorkHeader | No | WHSWarehouseWorkTemplateV3Entity | |
MaxUnitIdUnit of measure for the maximum quantity. | StringWHSMaxUnitId | No | UnitOfMeasure.Symbol | WHSWarehouseWorkTemplateV3Entity |
MaxVolumeMaximum volume allowed. | RealWHSMaxVolume | No | WHSWarehouseWorkTemplateV3Entity | |
MaxVolumeWorkHeaderMaximum total volume for one work header. | RealWHSMaxVolumeWorkHeader | No | WHSWarehouseWorkTemplateV3Entity | |
MaxWeightMaximum weight allowed. | RealWHSMaxWeight | No | WHSWarehouseWorkTemplateV3Entity | |
MaxWeightWorkHeaderMaximum total weight for one work header. | RealWHSMaxWeightWorkHeader | No | WHSWarehouseWorkTemplateV3Entity | |
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 | |
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 | WHSWarehouseWorkTemplateV3Entity | |
SplitCrossDockWorkAtLicensePlateReceivingYes/No flag for splitting cross-docking work when license plates are received. | EnumWHSSplitCrossDockWorkAtLicensePlateReceivingNoYes (enum) | No | WHSWarehouseWorkTemplateV3Entity | |
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 | |
UsePackingQtyYes/No flag to use the packing quantity as the maximum. | EnumWHSUsePackingQtyNoYes (enum) | No | WHSWarehouseWorkTemplateV3Entity | |
WorkPoolIdWork pool that the template assigns work to. | String (20)WHSWorkPoolId | No | WHSWorkPool.WorkPoolId | WHSWarehouseWorkTemplateV3Entity |
WorkTemplateClassificationRuleDynamic work classification rule linked to the template. | String (20)WHSWorkTemplateClassificationRuleId | No | WHSWorkTemplateClassificationRule.WorkTemplateClassificationRuleId | WHSWarehouseWorkTemplateV3Entity |
WorkTemplateDescDescription of the work template. | String (60)WHSWorkTemplateDesc | No | WHSWarehouseWorkTemplateV3Entity | |
WorkTemplateErrorTextError message text linked to the template. | String (250)WHSWorkTemplateErrorText | No | None | |
WorkTemplatePrioritySequence number that sets the order of templates. | IntegerWHSWorkTemplatePriority | No | WHSWarehouseWorkTemplateV3Entity | |
WorkTemplateQueryStored query that selects the records the template applies to. | ContainerWHSWorkTemplateQuery | No | WHSWarehouseWorkTemplateV3Entity | |
WorkTemplateValidYes/No flag showing whether the template is valid. | EnumWHSWorkTemplateValidNoYes (enum) | No | None |
Indexes (3)
WorkTemplateCodeWorkTransTypeIdxPrimary indexReplacement keyWorkTemplateCode,WorkTransTypeUnique, alternate key.
WorkTransTypeWorkTemplatePriorityIWorkTransType,WorkTemplatePriorityUnique, alternate key.
WorkTemplateClassificationRuleIdIdxWorkTemplateClassificationRuleNot unique.
Relations (6)
Each relation joins WHSWorkTemplateTable to another table on the fields shown.
InventLocation→InventLocationJoin on
InventLocationId = InventLocation.InventLocationIdMany WHSWorkTemplateTable records → zero or one InventLocation record
InventSite→InventSiteJoin on
InventSiteId = InventSite.SiteIdMany WHSWorkTemplateTable records → zero or one InventSite record
UnitOfMeasure→UnitOfMeasureJoin on
MaxUnitId = UnitOfMeasure.SymbolMany WHSWorkTemplateTable records → zero or one UnitOfMeasure record
WHSWorkPool→WHSWorkPoolJoin on
WorkPoolId = WHSWorkPool.WorkPoolIdMany WHSWorkTemplateTable records → zero or one WHSWorkPool record
WHSLicensePlateLabelBuildConfig→WHSLicensePlateLabelBuildConfigJoin on
LicensePlateLabelBuildConfig = WHSLicensePlateLabelBuildConfig.RecIdMany WHSWorkTemplateTable records → zero or one WHSLicensePlateLabelBuildConfig record
WHSWorkTemplateClassificationRule→WHSWorkTemplateClassificationRuleJoin on
WorkTemplateClassificationRule = WHSWorkTemplateClassificationRule.WorkTemplateClassificationRuleIdMany 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.
WHSWarehouseWorkTemplateV3Entity· 23 fields from this tableWHSWarehouseWorkTemplateWorkBreakEntity· 2 fields from this table
Need help with WHSWorkTemplateTable in a report, an integration or a migration? Talk to Dr Dynamics.