Table

WHSWorkTemplateGroup

Work template grouping

Stores the fields that a work template uses to group work. Each line points to a work template and names one table field, with a Yes/No flag for grouping by it. The key is the template reference plus a line number.

Table name
WHSWorkTemplateGroup
Module
Inventory
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
RefRecIdLineNumIdx
Replacement key
RefRecIdLineNumIdx
Key fields
RefRecId, LineNum
Model
Foundation

Fields (12)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
RefRecIdWork template that this grouping line belongs to.Int64
RefRecId
YesWHSWorkTemplateTable.RecIdWHSWarehouseWorkTemplateWorkBreakEntity
LineNumLine number that orders the records for one template.Real
LineNum
YesWHSWarehouseWorkTemplateWorkBreakEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
GroupFieldIdID of the table field used for grouping.Integer
RefFieldId
YesWHSWarehouseWorkTemplateWorkBreakEntity
GroupTableIdID of the table that holds the grouping field.Integer
RefTableId
YesWHSWarehouseWorkTemplateWorkBreakEntity
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
WorkGroupByYes/No flag showing whether work is grouped by this field.Enum
WHSWorkGroupBy
NoYes (enum)
NoWHSWarehouseWorkTemplateWorkBreakEntity

Indexes (2)

Relations (1)

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

  • WHSWorkTemplateTable → WHSWorkTemplateTable

    Join on RefRecId = WHSWorkTemplateTable.RecId

    Many WHSWorkTemplateGroup records → exactly one WHSWorkTemplateTable record

Get this data out

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

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

Email sales@drdynamics.co.uk