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)/How to group tables in DocumentsCorePack Templates

How to group tables in DocumentsCorePack Templates

4871 views 4 Updated on January 29, 2025

This blog article outlines how to group tables in DocumentsCorePack (.docx) templates. Grouping a table allows you to separate the line items within the table by a specific attribute, such as e.g. Product type.

Example: Our Product catalog consists of Product licenses as well as Services. When printing a quote, we want the items to be grouped in separate sections within a table.

Please note: If the grouping headers are displayed repeatedly or are mixed, you need to ensure that the line items are sorted by the grouping attribute. In short, you have to make sure that the grouping field is also the selected sorting field (See this article for details).

If you need more information on creating relationships using the DocumentsCorePack (DCP) TemplateDesigner, have a look at this article.

Step-by-step description

Step 1. After inserting the table into your document, you will have to ensure that ❶ the field you want to group-by has been inserted into the table row. Once done, select the field for grouping. In our example, we use the “Subject”-column of the Product table.

Select the field for grouping.
Figure 1: Selecting the grouping field

Step 2. Now put the ❶ cursor in the field you want to group and navigate to the Grouping drop-down and select ❷ Mark Grouping field.

Select in the Grouping drop-down the Mark Grouping field.
Figure 2: Put the cursor in the field, that should be marked as Gouping-field

More Grouping options:

❶ Mark Groupingfield: This function specifies the selected field as the grouping parameter. The system automatically inserts the header and footer to specify details.

❷ Mark as Sum-Field: This function specifies the selected field as the sum field. This allows e.g. create totals of a group in a table -footer.(See this article for details)
❸ Mark as Count-Field: This function counts, for example, the number of products in a table.
❹ Add Groupingheader: This function adds an additional header.
❺ Remove Groupingheader: This function removes a header you added before.
❻ Add Groupingfooter: This function adds an additional footer.
❼ Remove Groupingfooter: This function removes a footer you added before.
❽ Remove Grouping: This function allows you to remove the entire grouping for a selected table.

The Grouping options.
Figure 3: All Grouping options

Step 3. Once clicked, a ❶ Header and a ❷ Footer row are automatically created. You can change the layout and formatting for your groups.

Header and Footer are created after marking as Groupingfield.
Figure 4: Header and Footer are created after marking as Groupingfield

Step 4. The result.

A sample Grouping result.
Figure 5: Grouping Result

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

Was this helpful?

4 Yes  7 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
  • Recap: Nordic Summit 2025
  • The new Template Designer Office Add-In
  • Debugging the Template Design Office Add-In 
  • Updating Legacy SharePoint Connections 
  • What Happens After You Deploy AttachmentExtractor: Storage & Cost Savings in Dynamics 365
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
  • Important information for Dynamics 365 online customers using DocumentsCorePack and/or AttachmentExtractor
  • How to activate the DocumentsCorePack Connector for PowerApps & Microsoft Flow
  • How to insert Condition Fields in DocumentsCorePack Templates designer
  • How licenses are counted
Categories
  • *News and General Infos* 65
  • Webinars 46
  • Template Designer(DCP 197
  • DocumentsCorePack(DCP 260
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 75
  • 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.