• Release History
  • Documentation
  • Back to www.mscrm-addons.com
  • Release History
  • Documentation
  • Back to www.mscrm-addons.com
home/Knowledge Base/DocumentsCorePack(DCP)/Filter linked entities: .docx templates

Filter linked entities: .docx templates

653 views 0 Updated on July 27, 2022

It is possible to filter the linked entities of a 1:N and a N:N relationship during the merge process based on their IDs.
This works in combination with DocumentsCorePack and AutoMerge, but only with .docx-templates.

To achieve this, you have to create a new record of the MSCRM-ADDONS.com User/Temp Settings entity containing a filter.

Name
Use the Name-field to define for which user, entity type and record ID the filter should be used.

•    Structure

AMPreFilter|<>|<
>|<>|<>|

•    Example

AMPreFilter|{DC9B80F8-C781-46D8-9FD6-A3B610836975}|account|{7b069E5412-84F6-E111-977B-00155DC8AE09}|contact|

Value
Use the Value-field to define the IDs of the linked records which should be shown in the template.

•    Structure

<>

<>
<>
…….

•    Example

contact

{12E5214A-88BF-E111-A7C1-00155DC8AE09}
{12E5214A-88BF-E111-A7C1-00155DC8AE09}

Please note: The IDs must be in upper case and must contain brackets.

During each merge process of .docx-templates, the DocumentsCorePack Client and the AutoMerge addon both look for a suitable filter.
If such a filter is found, only linked records with a matching ID will be shown. The filter is deleted afterwards.
The usual merge process remains unchanged.

Example

Here you can see an account named ptm EDV-Systeme. It has several contacts related.

Figure 1: Account with related contacts

When we use the following filter, only contacts that match the GUIDs in the filter will be shown in the result document.
The defined user-GUID and the user running must match as well.

Figure 2: Example for an applied filter

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

Was this helpful?

Yes  No
Related Articles
  • Document Generation via Copilot in Dynamics 365 Sales using DocumentsCorePack
  • DocumentsCorePack: Best practices for Dynamics 365 on-premises to online migration projects
  • Multilingual Support in DocumentsCorePack
  • Configure DocumentsCorePack within custom pages
  • Ensuring correct time zone display for DateTime fields
  • Document Generation Failure from Missing Privileges
Latest Articles
  • Document Generation via Copilot in Dynamics 365 Sales using DocumentsCorePack
  • DocumentsCorePack: Best practices for Dynamics 365 on-premises to online migration projects
  • Multilingual Support in DocumentsCorePack
  • Recap: ColorCloud 2025
  • Configure DocumentsCorePack within custom pages
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 licenses are counted
  • How to insert Condition Fields in DocumentsCorePack Templates designer
Categories
  • *News and General Infos* 62
  • Webinars 45
  • Template Designer(DCP 196
  • DocumentsCorePack(DCP 251
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 72
  • 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
  • © 2022 www.mscrm-addons.com. All Rights Reserved.