Table
WHSWorkTemplateLine
Work Template Details
Holds the steps of a work template. Each line has a line number and belongs to a work template and work order type. It sets the work type, work class, directive code and flags such as mandatory or stop work. It can also link to a custom work type, quality check template and anchoring group.
- Table name
WHSWorkTemplateLine- Module
Inventory- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
WHSandTMS- Primary index
WorkTemplateCodeLineNumWorkTransTypeIdx- Replacement key
WorkTemplateCodeLineNumWorkTransTypeIdx- Key fields
WorkTemplateCode, LineNum, WorkTransType- Model
Foundation
Fields (20)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
WorkTemplateCodeWork template that this line belongs to. | String (20)WHSWorkTemplateCode | Yes | WHSWorkTemplateTable.WorkTemplateCode | WHSWarehouseWorkTemplateLineEntityWHSWarehouseWorkTemplateWorkLineBreakEntity |
LineNumLine number that orders the steps in the template. | RealLineNum | Yes | WHSWarehouseWorkTemplateLineEntityWHSWarehouseWorkTemplateWorkLineBreakEntity | |
WorkTransTypeType of work order that the template line applies to. | EnumWHSWorkTransType (enum) | Yes | WHSWorkTemplateTable.WorkTransType | WHSWarehouseWorkTemplateLineEntityWHSWarehouseWorkTemplateWorkLineBreakEntity |
AnchoringGroupIdAnchoring group linked to this line. | String (20)WHSAnchoringGroupId | No | WHSAnchoringGroupTable.AnchoringGroupId | WHSWarehouseWorkTemplateLineEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FreezeYes/No flag for freezing the work line. | EnumWHSFreezeNoYes (enum) | No | WHSWarehouseWorkTemplateLineEntity | |
LocDirHintCodeDirective code linked to this line. | String (20)WHSLocDirHintCode | No | WHSLocDirHint.LocDirHintCode | WHSWarehouseWorkTemplateLineEntity |
MandatoryYes/No flag showing whether this line is mandatory. | EnumWHSMandatoryNoYes (enum) | No | WHSWarehouseWorkTemplateLineEntity | |
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 | |
QualityCheckTemplateNameQuality check template linked to this line. | String (20)WHSQualityCheckTemplateName | No | WHSQualityCheckTemplate.QualityCheckTemplateName | WHSWarehouseWorkTemplateLineEntity |
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 | |
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 | |
WorkClassIdWork class assigned to this line. | StringWHSWorkClassId | Yes | WHSWarehouseWorkTemplateLineEntity | |
WorkStopYes/No flag for stopping the work at this line. | EnumWHSWorkStopNoYes (enum) | No | WHSWarehouseWorkTemplateLineEntity | |
WorkTypeKind of work this line does, such as pick, put, counting or print. | EnumWHSWorkType (enum) | Yes | WHSWarehouseWorkTemplateLineEntity | |
WorkTypeCustomCodeCustom work type used on this line. | String (20)WHSWorkTypeCustomCode | No | WHSWorkTypeCustom.WorkTypeCustomCode | WHSWarehouseWorkTemplateLineEntity |
Indexes (2)
WorkTemplateCodeLineNumWorkTransTypeIdxPrimary indexReplacement keyWorkTemplateCode,LineNum,WorkTransTypeUnique, alternate key.
QualityCheckTemplateNameWorkTypeWorkTransTypeIdxQualityCheckTemplateName,WorkType,WorkTransTypeNot unique.
Relations (6)
Each relation joins WHSWorkTemplateLine to another table on the fields shown.
WHSLocDirHint→WHSLocDirHintJoin on
LocDirHintCode = WHSLocDirHint.LocDirHintCodeMany WHSWorkTemplateLine records → zero or one WHSLocDirHint record
WHSWorkClassTable→WHSWorkClassTableJoin on
WorkClassId = WHSWorkClassTable.WorkClassIdMany WHSWorkTemplateLine records → exactly one WHSWorkClassTable record
WHSWorkTemplateTable→WHSWorkTemplateTableJoin on
WorkTemplateCode = WHSWorkTemplateTable.WorkTemplateCode,WorkTransType = WHSWorkTemplateTable.WorkTransTypeMany WHSWorkTemplateLine records → exactly one WHSWorkTemplateTable record
WHSWorkTypeCustom→WHSWorkTypeCustomJoin on
WorkTypeCustomCode = WHSWorkTypeCustom.WorkTypeCustomCodeMany WHSWorkTemplateLine records → zero or one WHSWorkTypeCustom record
WHSQualityCheckTemplate→WHSQualityCheckTemplateJoin on
QualityCheckTemplateName = WHSQualityCheckTemplate.QualityCheckTemplateNameMany WHSWorkTemplateLine records → zero or one WHSQualityCheckTemplate record
WHSAnchoringGroupTable→WHSAnchoringGroupTableJoin on
AnchoringGroupId = WHSAnchoringGroupTable.AnchoringGroupIdMany WHSWorkTemplateLine records → exactly one WHSAnchoringGroupTable record
Get this data out
Tables are not exposed directly. These public entities read from WHSWorkTemplateLine; use one of them in Power BI, Power Platform or a data management project.
WHSWarehouseWorkTemplateLineEntity· 12 fields from this tableWHSWarehouseWorkTemplateWorkLineBreakEntity· 3 fields from this table
Need help with WHSWorkTemplateLine in a report, an integration or a migration? Talk to Dr Dynamics.