DocTmpl Table (130)

DocTmpl MDO list item table. DocTmpl list table. Describes templates available for writing new documents.

Fields

NameDescriptionTypeNull
DocTmpl_idPrimary keyPK
nameThe list itemString(239)
rankRank orderUShort
tooltipTooltip or other descriptionString(254)
deleted0 -> record is active 1 -> record is ‘deleted’ and should not be shown in listsUShort
filenameRelative to TemplatePath in SOARC. Plugin specific extref in other doc archives. i.e. Google document URL or Notes id.String(239)
autoevent_idDocument plugin id - where the documents generated from this template are to be stored. Copied to the document.archiveProvider when document is created.Id
record_type1 = app, 2 = doc, 3 = email, 4 = fax, 5 = phone, 6 = todo - see EAppntRecordTypesEnum DocTmplType
direction1 = incoming, 2 = outgoing, see EAppntDirectionEnum DocTmplDirection
saveInDb1 = save document records in DB; otherwise not.UShort
default_orefProcessed via tag substitution to give document referenceString(239)
regkey_openRegistry key to use for Open, if blank, we simply ask Windows to do the operation for usString(239)
regkey_editRegistry key to use for Edit; if blank, we simply ask Windows to do the operation for usString(239)
regkey_printRegistry key to use for Print; if blank, we simply ask Windows to do the operation for usString(239)
acceleratorAccelerator key code for this templateUShort
registeredRegistered whenUtcDateTime
registered_associate_idRegistered by whomFK associate
updatedLast updated whenUtcDateTime
updated_associate_idLast updated by whomFK associate
updatedCountNumber of updates made to this recordUShort
defaultPublishTypeShould documents based on this template be published=true? Default state of publish flag on documents.Enum PublishType
intentIdWhat is the intention of this document (used by SAINT)FK Intent
mimeTypeThe MIME type, for Web/Browser use of documents of this typeString(254)
loadTemplateFromPluginIf nonzero, then this is the ID of the document plugin that should supply the template document file, instead of the default so_arc/templateInt
quoteDocTypeThe role this document plays in the Quote system, if anyEnum DocTmplQuoteType
privacyDocTypeIndicator that this document template has a functional role, related to privacy/GDPREnum DocTmplPrivacyType
emailSubjectSubject line for document templates that represent an email; template tags are accepted in this itemString(4000)
includeSignatureIf True, signature (mail.htm) should be added at bottom of template when usedBool
showCurrentsIf True, A dialog or sidebar will be shown for changing current values on Contact, PersonBool
senderEmailModeType of sender email setting. Always use senderEmailAddress = 0, Use Our contact = 1, Use Support Associate = 2Enum SenderMailMode
senderEmailAddressThe email address to use in from fieldString(256)
invitationDocTypeType for sending email meeting invitation. Not an invitation type template = 0, New = 1, Changed = 2, Cancelled = 3Enum DocTmplInvitationType

DocTmpl table relationship diagram

Values needed to access the DocTmpl tables

This table must contain special values that would be difficult to guess correctly. These are listed below with a description of how to use them.

| Record Type | ID | Comment | |---|---|---| | Unknown | 0 | The document type is unknown/undecided | | Appointment | 1 | (not used for document templates) | | Document | 2 | Generic text document (for instance, a letter) | | Email | 3 | Email message | | Fax | 4 | Facsimile | | Phone | 5 | (not used for document templates) | | To Do | 6 | (not used for document templates) | | Mail merge draft document | 7 | Template for mail merge operations | | Mail merge final document | 8 | Result of a mail merge operation | | Saved report | 9 | Saved result of running a report (output from Reporter) |

| Direction Type | ID | Comment | |---|---|---| | Unknown | 0 | The direction of documents from this template is unknown/undecided | | Incoming | 1 | Document template for incoming documents | | Outgoing | 2 | Document template is used for outgoing documents | | SaintAll | 3 | 'All' choice for Saint. This is NOT an acceptable value for a task definition, but is used by the Saint system for indexing all directions |

Is this document template some kind of quote document, and if so what

| QuoteDocType | ID | Comment | |---|---|---| | None | 0 | This document template is in no way related to Quote Management | | MailBody | 1 | This is a template for the offer mail body | | MainDocument | 2 | This is a template for the main offer document, document instances will be referred through Quote.DocumentId | | QuoteLines | 3 | This is a template for the AsposeWords merge process, generating the offer line details | | ConfirmationMailBody | 4 | This is a template for the mail body of the order confirmation | | ConfirmationLines | 5 | This is a template for the lines document that is an attachment to the confirmation mail |

Indexes

FieldsTypesDescription
DocTmpl_idPKClustered, Unique
nameString(239)Unique

Relationships

TableDescription
associateEmployees, resources and other users - except for External persons
ConsentSourceConsent source for GDPR
DocTmplGroupLinkUser group link table for DocTmpl, for MDO item hiding
DocTmplHeadingLinkHeading link table for DocTmpl, for MDO headers
IntentIntent list for SAINT. More information regarding SuperOffice Sales Intelligence on http://techdoc.superoffice.com
SaleTypeType of sale - large solution, incremental, whatever fits the organization
SuggestedDocumentUnique owner of a set of licensed modules

Replication Flags

  • Replicate changes DOWN from central to satellites and travellers.
  • Replicate changes UP from satellites and travellers back to central.
  • Copy to satellite and travel prototypes.

Security Flags

  • No access control via user’s Role.