• Documentation
  • Back to www.mscrm-addons.com
  • Documentation
  • Back to www.mscrm-addons.com
home/Knowledge Base/Template Designer(DCP)/Insert a static document subtemplate

Insert a static document subtemplate

699 views 0 Updated on January 14, 2022

The insert as static document button is a very useful functionality if it comes to creating templates in DocumentsCorePack Template Designer. Its functionalities can be expanded to insert not only static documents but also sub-templates. In the course of this article, you will learn how to do so.

First of all, you need to open two templates, but you could also create two totally new ones.
Learn which fields can be added to a template here.

You need one for your main entity and one for your sub-entity. They are the base for all further actions.

Description on how to create a sub-template to a static document

Step 1: Create a template for your main entity and 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 up a relationship between the entity of the sub-template and the main template. Open the DocumentsCorePack Template Designer with a click on
the ❶ [Insert MailMerge Fields]-button, switch to the Additional tab, and click on ❷ Add Relationship/Entity and select ❸ All contacts.


Figure 1: DocumentsCorePack Template Designer

Step 3: Now navigate to the Insert Field Button > Insert Static Item > Static Document within the Template Designer. The following dialog will pop up:


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 via the search field for the ID-field
❸ Check the checkbox next to “Provide the selected field as a parameter” to enable the sub-template to be merged with 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 on the [OK]-button to proceed

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


Figure 3: Main template – additional field

Congratulations! You have created your very first static sub-template!
Our result looks like this in the 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 which can not be part of a table might cause unexcpected behaviour (e.g. 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?

Yes  No
Related Articles
  • How to solve the issue with DocumentsCorePack fields in Arabic text
  • How to access mscrm-addons product settings in Dynamics 365
  • How to create totals in the footer of a table
  • How to set a specific Language in your Template
  • Azure Active Directory Licensing counts explained
  • When to use the „Do not use DataProvider“-setting in DocumentsCorePack
Latest Articles
  • How to display various activity-attributes within multiple rows in Gantt view
  • Recap: European Power Platform Conference 2022
  • How to solve the issue with DocumentsCorePack fields in Arabic text
  • How to access mscrm-addons product settings in Dynamics 365
  • One-Click-Actions (OCAs) in DocumentsCorePack
Popular Articles
  • DocumentsCorePack Online Service Configuration
  • Where do I find the Unique Organization name in Microsoft Dynamics 365?
  • mscrm-addons.com Application Access for Dynamics 365 (App Access) – DocumentsCorePack
  • How to activate the DocumentsCorePack connector for PowerApps & Microsoft Flow
  • How licenses are counted
Top Rated Articles
  • IMPORTANT information for Dynamics 365 online customers using DocumentsCorePack and/or AttachmentExtractor
  • How to activate the DocumentsCorePack connector for PowerApps & Microsoft Flow
  • Step-by-Step: How to configure a One-Click-Action
  • Can you save data capacity by moving email content?
  • How to work with the new DocumentsCorePack custom connector for PowerAutomate (Microsoft Flow)
Categories
  • *News and General Infos* 50
  • Template Designer(DCP 160
  • DocumentsCorePack(DCP 180
  • TelephoneIntegration (TI 64
  • AttachmentExtractor (AE 55
  • PowerSearch (PS 43
  • ActivityTools (AT 57
  • SmartBar (SB 51
  • GroupCalendar (GC 45
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
  • © 2020 www.mscrm-addons.com. All Rights Reserved.