• Release History
  • Documentation
  • Back to www.mscrm-addons.com
  • Release History
  • Documentation
  • Back to www.mscrm-addons.com
home/Knowledge Base/Template Designer(DCP)/How to use Aggregation properly when creating templates

How to use Aggregation properly when creating templates

575 views 0 Updated on March 11, 2023

This article provides you with a step-by-step tutorial on how to work properly with aggregation.

Aggregated fetches are a useful functionality when creating templates. They allow you to create an overview of certain data and sum or calculate the average of revenues or sales. They can also be used to create quarterly, yearly, monthly or daily reports.

Click here to get a further overview of aggregation in DocumentsCorePack (DCP).

Step 1. Open the Template Designer
Open MS Word, navigate to the www.mscrm-addons.com tab and click on the Insert MailMerge fields button. The DCP Question Dialog opens. Click Yes to open the DCP Template Designer.

Open the Template Designer.
Figure 1: Open the Template Designer

Step 2. Open the Configure Fields and Datasource dialog
In the opened Template Designer, select the entity type you would like to work on, such as Account. Then click on the Additional tab and then on the Add Relationship/Entity button.

Select your entity type and resolve the relationship.
Figure 2: Resolve a relationship

Step 3. Activate aggregation
In the opened dialog, select a relationship in the drop-down menu. In our example, we selected Account –> Contact [parentcustomerid]. Check the activate aggregation functionality.

Check the "activate aggregation" functionality
Figure 3: Activate aggregation

Step 4. Set the aggregation functionality
In the window that opens, you can set certain aggregation functionalities.

The Attribute drop-down menu enables you to select an attribute field, while the Aggregate/Group by drop-down menu provides you with an overview on which aggregation functionalities can be applied to this field.

Please note: The possible aggregation functionalities depend on the attribute field you select.

Choose which aggregation functionalities you want to apply.
Figure 4: Set the aggregation functionality

Click on the OK button to proceed.

Step 5. Insert the newly resolved relationship
Now click somewhere in your template and double-click on the field of the new relationship on the right side.

Insert the newly resolved relationship into your template.
Figure 5: Insert resolved relationship

As shown in figure 5, the relationship consists of two parts:

  1. First name → the name of the field.
  2. (count) → explains the aggregation functionality that has been applied to the relationship.

Now insert your preferred table settings and click on the OK button.

Step 6. The result
We decided to insert a table with a header in our example. The resolved relationship has been added to our template.

A sample result document.
Figure 6: The result

Now make sure to save your template. Then merge it with CRM data and test it. If you have not merged and/or tested a template before, please have a look at this article.

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

Was this helpful?

Yes  1 No
Related Articles
  • Working with Product Properties in DocumentsCorePack
  • How to work with the Relationship Manager
  • Using virtual tables in DocumentsCorePack
  • DocumentsCorePack Template Designer Settings
  • How to solve: Failed to connect to an IPC Port
  • How to solve: Failed to connect to an IPC Port
Latest Articles
  • Working with Product Properties in DocumentsCorePack
  • How to work with the Relationship Manager
  • Using virtual tables in DocumentsCorePack
  • DocumentsCorePack Template Designer Settings
  • How to solve: Failed to connect to an IPC Port
Popular Articles
  • Where do I find the Unique Organization name in Microsoft Dynamics 365?
  • DocumentsCorePack Template Designer – Getting Started
  • mscrm-addons.com Application Access for Dynamics 365 (App Access) – DocumentsCorePack
  • DocumentsCorePack Online Service Configuration
  • Step-by-Step: How to configure a One-Click-Action
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
  • Online Services: Required Application Permissions
  • Where do I find the Unique Organization name in Microsoft Dynamics 365?
Categories
  • *News and General Infos* 51
  • Webinars 35
  • Template Designer(DCP 180
  • DocumentsCorePack(DCP 191
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 62
  • PowerSearch (PS 48
  • ActivityTools (AT 59
  • SmartBar (SB 53
  • GroupCalendar (GC 46
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.