Table

WorkPeriodTemplate

Period templates

Holds period templates, keyed by name. Each template can set a fixed start day of the week, link to a working time template, and be linked to a legal entity.

Table name
WorkPeriodTemplate
Module
Master planning
Table group
Group
Table type
Regular
Data per company
No
Configuration key
None
Primary index
RecId
Replacement key
NameIdx
Key fields
Name
Model
Foundation

Fields (11)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
NameName of the period template.String (60)
PeriodTemplateName
YesReqMasterPlanningProductCoverageGroupEntity
FixedDayStartDay of the week on which a day-based period starts.Enum
PeriodTemplateFixedDayStart
WeekDays (enum)
NoNone
LegalEntityLegal entity linked to the template.Int64
RefRecId
YesCompanyInfo.RecIdNone
LegalEntityDefaultShows whether this is the default template for the legal entity.Enum
NoYesId
NoYes (enum)
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
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
WorkTimeIdWorking time template used by this period template.String
WorkTimeIdBase
NoWorkTimeTable.WorkTimeIdNone
WorkTimeIdDataAreaIdCompany of the working time template.String
SelectableDataArea
NoWorkTimeTable.dataAreaIdNone

Indexes (1)

  • NameIdxReplacement key

    Name

    Unique, alternate key.

Relations (2)

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

  • CompanyInfo → CompanyInfo

    Join on LegalEntity = CompanyInfo.RecId

    Many WorkPeriodTemplate records → exactly one CompanyInfo record

  • WorkTimeTable → WorkTimeTable

    Join on WorkTimeIdDataAreaId = WorkTimeTable.dataAreaId, WorkTimeId = WorkTimeTable.WorkTimeId

    Many WorkPeriodTemplate records → zero or one WorkTimeTable record

Get this data out

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

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

Email sales@drdynamics.co.uk