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 descriptionType / EDT / enumMandatoryReferencesIn public entities
WorkTemplateCodeWork template that this line belongs to.String (20)
WHSWorkTemplateCode
YesWHSWorkTemplateTable.WorkTemplateCodeWHSWarehouseWorkTemplateLineEntityWHSWarehouseWorkTemplateWorkLineBreakEntity
LineNumLine number that orders the steps in the template.Real
LineNum
YesWHSWarehouseWorkTemplateLineEntityWHSWarehouseWorkTemplateWorkLineBreakEntity
WorkTransTypeType of work order that the template line applies to.Enum
WHSWorkTransType (enum)
YesWHSWorkTemplateTable.WorkTransTypeWHSWarehouseWorkTemplateLineEntityWHSWarehouseWorkTemplateWorkLineBreakEntity
AnchoringGroupIdAnchoring group linked to this line.String (20)
WHSAnchoringGroupId
NoWHSAnchoringGroupTable.AnchoringGroupIdWHSWarehouseWorkTemplateLineEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FreezeYes/No flag for freezing the work line.Enum
WHSFreeze
NoYes (enum)
NoWHSWarehouseWorkTemplateLineEntity
LocDirHintCodeDirective code linked to this line.String (20)
WHSLocDirHintCode
NoWHSLocDirHint.LocDirHintCodeWHSWarehouseWorkTemplateLineEntity
MandatoryYes/No flag showing whether this line is mandatory.Enum
WHSMandatory
NoYes (enum)
NoWHSWarehouseWorkTemplateLineEntity
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
QualityCheckTemplateNameQuality check template linked to this line.String (20)
WHSQualityCheckTemplateName
NoWHSQualityCheckTemplate.QualityCheckTemplateNameWHSWarehouseWorkTemplateLineEntity
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
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
WorkClassIdWork class assigned to this line.String
WHSWorkClassId
YesWHSWarehouseWorkTemplateLineEntity
WorkStopYes/No flag for stopping the work at this line.Enum
WHSWorkStop
NoYes (enum)
NoWHSWarehouseWorkTemplateLineEntity
WorkTypeKind of work this line does, such as pick, put, counting or print.Enum
WHSWorkType (enum)
YesWHSWarehouseWorkTemplateLineEntity
WorkTypeCustomCodeCustom work type used on this line.String (20)
WHSWorkTypeCustomCode
NoWHSWorkTypeCustom.WorkTypeCustomCodeWHSWarehouseWorkTemplateLineEntity

Indexes (2)

Relations (6)

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

  • WHSLocDirHint → WHSLocDirHint

    Join on LocDirHintCode = WHSLocDirHint.LocDirHintCode

    Many WHSWorkTemplateLine records → zero or one WHSLocDirHint record

  • WHSWorkClassTable → WHSWorkClassTable

    Join on WorkClassId = WHSWorkClassTable.WorkClassId

    Many WHSWorkTemplateLine records → exactly one WHSWorkClassTable record

  • WHSWorkTemplateTable → WHSWorkTemplateTable

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

    Many WHSWorkTemplateLine records → exactly one WHSWorkTemplateTable record

  • WHSWorkTypeCustom → WHSWorkTypeCustom

    Join on WorkTypeCustomCode = WHSWorkTypeCustom.WorkTypeCustomCode

    Many WHSWorkTemplateLine records → zero or one WHSWorkTypeCustom record

  • WHSQualityCheckTemplate → WHSQualityCheckTemplate

    Join on QualityCheckTemplateName = WHSQualityCheckTemplate.QualityCheckTemplateName

    Many WHSWorkTemplateLine records → zero or one WHSQualityCheckTemplate record

  • WHSAnchoringGroupTable → WHSAnchoringGroupTable

    Join on AnchoringGroupId = WHSAnchoringGroupTable.AnchoringGroupId

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

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

Email sales@drdynamics.co.uk