Table

DocuTemplate

Document templates

Holds document templates for Excel or Word. A template is identified by type, name, company, country or region and language. Each row also names the file, its file type, the root data entity and options for filters and menu listing.

Table name
DocuTemplate
Module
System administration
Table group
Miscellaneous
Table type
Regular
Data per company
No
Configuration key
None
Primary index
None
Replacement key
Template
Key fields
TemplateType, TemplateID, LegalEntityID, RegionID, LanguageID
Model
ApplicationFoundation

Fields (21)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
TemplateTypeWhether the template is for Excel or Word.Enum
DocuTemplateType
OfficeAppApplicationType (enum)
YesNone
TemplateIDName of the template.String (75)
DocuTemplateName
YesNone
LegalEntityIDCompany (legal entity) the template applies to.String
DataAreaId
NoNone
RegionIDTwo-letter country or region code for the template.String (2)
DocuTemplateRegion
NoNone
LanguageIDLanguage of the template. Points to a language record.String (7)
LanguageId
NoLanguageTable.LanguageIdNone
AotResourceNameName of the application resource for the template. Exact use is not stated in the metadata.low confidenceString (100)NoNone
ApplyCompanyFilterYes or No flag for applying a company filter.Enum
DocuTemplateApplyCompanyFilter
NoYes (enum)
NoNone
ApplyRecordFilterYes or No flag for applying the current record filter.Enum
DocuTemplateApplyRecordFilter
NoYes (enum)
NoNone
DescriptionFree-text description of the template.String (255)
Description255
NoNone
DisplayNameName shown to users for the template.String (255)
DocuTemplateDisplayName
NoNone
FileIDGUID of the stored template file.GuidNoNone
FileNameName of the template file.String (259)
Filename
NoNone
FileTypeFile extension type of the template. Points to a document file extension record.String (259)
FilenameType
NoDocuFileTypes.FileTypeNone
ListInOfficeMenuYes or No flag for listing the template in the Open in Office menu.Enum
DocuTemplateListInOfficeMenu
NoYes (enum)
NoNone
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
RootEntityNameName of the main data entity the template uses.String (100)
DocuTemplateRootEntityName
YesNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

Relations (2)

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

  • Filetype → DocuFileTypes

    Join on FileType = DocuFileTypes.FileType

    Many DocuTemplate records → zero or one DocuFileTypes record

  • LanguageTable → LanguageTable

    Join on LanguageID = LanguageTable.LanguageId

    Many DocuTemplate records → zero or one LanguageTable record

Get this data out

No public entity reads from DocuTemplate. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk