mscrm-addons.com logomscrm-addons.com logo
  • Release History
  • Knowledge Base
  • Documentation
  • Contact Support
  • Release History
  • Knowledge Base
  • Documentation
  • Contact Support
home/Knowledge Base/Template Designer(DCP)/The “Insert as static document (or sub-template)” button

The “Insert as static document (or sub-template)” button

2223 views 1 Updated on April 22, 2024

The Insert as static document button is a very useful functionality when creating templates in the DocumentsCorePack (DCP) Template Designer. This article outlines how to use this button to insert static documents and sub-templates.

Step-by-step description on how to create a sub-template for a static document

Step 1: Create or open two templates, one for your main entity and one for the sub-entity.

In our example, the main template is based on the entity Account and the sub-template is based on the entity Contact.

Step 2: Build a relationship between the entity of the sub-template and the main template.

Open the DCP Template Designer with a click on the ❶ Insert MailMerge Fields button in the www.mscrm-addons.com tab of Word, switch to the Additional tab, and click on ❷ Add Relationship/Entity and select ❸ All contacts.

Open the DCP Template Designer and build a relationship between the entity of the sub-template and the main template.
Figure 1: DCP Template Designer

Step 3: Now navigate to the Insert Field Button drop-down > Insert Static Item > Static Document within the Template Designer. View additional information about the Insert Field Button here. The following dialog will pop up.

The Static Document dialog
Figure 2: Static document properties

Within the Static Document dialog:

❶ Select the ID-field of the related record. (In our example, this is Contact ID.)
❷ You can do this via the search field or the ID-field.
❸ Click on the Select Document button to select the static document you would like to insert.
❹ The selected document is shown.
❺ Click OK to proceed.

If you go back to your main template, you will note that the following field has been added to it:

The added field to the main template.
Figure 3: Main template – additional field

You have now created your first static sub-template.

Our sample result looks like this in the merged template:

Sample resulting merged template.
Figure 4: Result

Please note:

  • If a sub-document is inserted within a table, some limitations of Word apply. Elements and controls that are part of the sub-document but cannot be part of a table might cause unexpected behavior (for example: page breaks).
  • A sub-document does not work when it is inserted in the header or footer section of a template.

That’s it! We appreciate your feedback! Please share your thoughts by sending an email to office@mscrm-addons.com.

Was this helpful?

1 Yes  1 No
Related Articles
  • Debugging the Template Design Office Add-In 
  • Introducing the DocumentsCorePack Template Designer Office Add-In
  • Ensuring correct time zone display for DateTime fields
  • How to compare a date-fields with the current date 
  • Create a template for XML or plain text
  • E-Invoicing with DocumentsCorePack
Latest Articles
  • Locating Raw Inputs and Outputs in Power Automate
  • Step by Step: How to execute an OCA in a Power Automate flow 
  • The Hidden Cost of CRM Storage — And How to Eliminate It 
  • Recap: Nordic Summit 2025
  • The new Template Designer Office Add-In
Popular Articles
  • DocumentsCorePack Template Designer – Getting Started
  • Step-by-Step: How to configure a One-Click-Action
  • Application Access for Dynamics 365
  • How to find your environment’s unique name in Microsoft Dynamics 365
  • How licenses are counted
Top Rated Articles
  • “Undefined”-labels in Chrome and Edge 114 and higher
  • How to insert Condition Fields in DocumentsCorePack Templates designer
  • Important information for Dynamics 365 online customers using DocumentsCorePack and/or AttachmentExtractor
  • How to activate the DocumentsCorePack Connector for PowerApps & Microsoft Flow
  • How licenses are counted
Categories
  • *News and General Infos* 65
  • Webinars 46
  • Template Designer(DCP 197
  • DocumentsCorePack(DCP 262
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 76
  • PowerSearch (PS 50
  • ActivityTools (AT 61
  • SmartBar (SB 54
  • GroupCalendar (GC 47
Our Vision

“We see it as our purpose to provide products that simplify and speed up our customers’ Microsoft Dynamics 365 experience.”

Knowledgebase
LogIn
mscrm-addons.com
  • Products
  • Online Shop
  • Downloads
  • My Account
About Us
  • About Us
  • Case Studies
  • Newsletter
  • Partner Program
  • Contact
Support
  • Support
  • Terms & Conditions
  • Documentation
  • Webinars
  • Legal Documents
  • Impressum
  • © 2025 www.mscrm-addons.com. All Rights Reserved.