• Documentation
  • Back to www.mscrm-addons.com
  • Documentation
  • Back to www.mscrm-addons.com
home/Knowledge Base/Template Designer(DCP)/How to group tables in DocumentsCorePack .docx templates

How to group tables in DocumentsCorePack .docx templates

773 views 2 Updated on March 26, 2020

This blog article outlines how to group tables in DocumentsCorePack (.docx) templates. The DocumentsCorePack Grouping functionality gives users the possibility to define an optical sorting and thus, a separation for specific fields.

Please note: If the grouping headers are displayed repeatedly or if they are mixed up, please check the sorting that is set in the RelationshipDesigner. Please make sure that the grouping field is also the selected sorting field. 

Example:

DocumentsCorePack (.docx) table, grouped by the same job title
Figure 1: DocumentsCorePack (.docx) table, grouped by the same job title

How to group tables for DocumentsCorePack templates properly: 

1) First of all, open Microsoft Word and navigate to www.mscrm-addons.com. Then click on the [Insert MailMerge Fields]-button in order to create your table with DocumentsCorePack, like you can see it below.

Open www.mscrm-addons.com
Figure 2: Open www.mscrm-addons.com

 

2) Next, open the Additional-tab to create your table by inserting the appropriate MailMerge fields. The Additional-tab is necessary and has been designed to manage additional relationships. For more information about how to create relationships using the DCP Template Designer, please have a look at this blog article. 

 

DocumentsCorePack table with insert MailMerge fieldsFigure 3: DocumentsCorePack table with Insert MailMerge fields 

3) Now select the field which you want to define the grouping for. We want to group our table for the row Job. To do so, simply select the field <> like below. 

Selected field for groupingFigure 4: Selected field for grouping

4) Navigate to www.mscrm-addons .com at the top, and click on the [Grouping]-button. There are some Grouping options, that are explained below. For our example please select Mark Groupingfield.

Select grouping for (.docx) templates

 

Figure 5: Select grouping for (.docx) templates

 

Mark Groupingfeld
This option inserts you automatically a header and a footer – in this case, job title, as you can see below.

Insert table header and footerFigure 6: Insert table header and footer

Mark as Sum-Field
This function sums the entire group.   For example: You have two product groups – hardware and software.  By selecting this option you can build the sum of e.g. the price of all hardware and all software products.

Mark as Count-Field
This function counts, as the name suggests – in this case e.g. how many people are per job title.

Add Groupingheader
You can add an additional header with more information.

Remove Groupingheader
Removes you the before added header.

Add Groupingfooter
You can also add an additional footer.

Remove Groupingfooter
Removes you the before added footer.

Remove Grouping
This option allows you to remove the entire grouping you´ve made.

6) After defining all your grouping options, you can also change the layout of your table. To do so, select your table and navigate to Design and choose the layout you want – in this case, green. Once you have saved your template and merged it with Dynamics 365 data, the table should look similar to the sample in Figure 7.

Sample result for grouped table in .docx templates in DocumentsCorePack

Figure 7: Sample result for grouped table in .docx templates in DocumentsCorePack

As you can see, all contacts with the same job title have been grouped in the same header and footer.

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

Was this helpful?

2 Yes  3 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?
  • DocumentsCorePack Property Syntax (Dynamics 365)
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
  • © 2022 www.mscrm-addons.com. All Rights Reserved.