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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TemplateTypeWhether the template is for Excel or Word. | EnumDocuTemplateTypeOfficeAppApplicationType (enum) | Yes | None | |
TemplateIDName of the template. | String (75)DocuTemplateName | Yes | None | |
LegalEntityIDCompany (legal entity) the template applies to. | StringDataAreaId | No | None | |
RegionIDTwo-letter country or region code for the template. | String (2)DocuTemplateRegion | No | None | |
LanguageIDLanguage of the template. Points to a language record. | String (7)LanguageId | No | LanguageTable.LanguageId | None |
AotResourceNameName of the application resource for the template. Exact use is not stated in the metadata.low confidence | String (100) | No | None | |
ApplyCompanyFilterYes or No flag for applying a company filter. | EnumDocuTemplateApplyCompanyFilterNoYes (enum) | No | None | |
ApplyRecordFilterYes or No flag for applying the current record filter. | EnumDocuTemplateApplyRecordFilterNoYes (enum) | No | None | |
DescriptionFree-text description of the template. | String (255)Description255 | No | None | |
DisplayNameName shown to users for the template. | String (255)DocuTemplateDisplayName | No | None | |
FileIDGUID of the stored template file. | Guid | No | None | |
FileNameName of the template file. | String (259)Filename | No | None | |
FileTypeFile extension type of the template. Points to a document file extension record. | String (259)FilenameType | No | DocuFileTypes.FileType | None |
ListInOfficeMenuYes or No flag for listing the template in the Open in Office menu. | EnumDocuTemplateListInOfficeMenuNoYes (enum) | No | None | |
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 | |
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 | |
RootEntityNameName of the main data entity the template uses. | String (100)DocuTemplateRootEntityName | Yes | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (2)
TemplateReplacement keyTemplateType,TemplateID,LegalEntityID,RegionID,LanguageIDUnique, alternate key.
TemplatesByEntityNot unique.
Relations (2)
Each relation joins DocuTemplate to another table on the fields shown.
Filetype→DocuFileTypesJoin on
FileType = DocuFileTypes.FileTypeMany DocuTemplate records → zero or one DocuFileTypes record
LanguageTable→LanguageTableJoin on
LanguageID = LanguageTable.LanguageIdMany 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.