• 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 build and format an address block with DocumentsCorePack Template Designer

How to build and format an address block with DocumentsCorePack Template Designer

1112 views 2 Updated on May 25, 2023

This article explains how to build and format an address block properly with DocumentsCorePack Template Designer. With the DocumentsCorePack Field Properties functionality, users can easily format every address line and define specific line behavior for information, even if it is not stored in Dynamics 365.

Step-by-step description: How to build an address block

Step 1: An address block can be easily created with the DocumentsCorePack Template Designer. To do this, open Microsoft Word and navigate to the ❶ www.mscrm-addons.com tab. Click on the ❷ Insert MailMerge Fields button and the ❸ DocumentsCorePack Task Pane opens.

Open DocumentsCorePack Template Designer
Figure 1: Open DocumentsCorePack Template Designer

Step 2: After selecting the Entity Type/Table (it is Account in this example), you can begin inserting the appropriate MailMerge Fields into your future address block by double-clicking on the required fields to add them to the document.

An example address block
Figure 2: An example address block

Step 3: In order to save it to your Dynamics 365 click the Save Template button in the Word ribbon.

Save template to Dynamics 365
Figure 3: Save template to Dynamics 365

Step 4: This window opens. Define a name for your template and confirm with Save.

Save template window
Figure 4: Save template window

Step 5: To select the relevant Data from Dynamics 365, click on the ❶ Choose Data button. In the MailMerge window select the ❷ entity/table you want your template to merge to and hit the ❸
Search button. All ❹ Dynamics 365 data is loading. Now look for the data you need to merge the template with and confirm with ❺ Select.

Select Dynamics 365 data for merging the template
Figure 5: Select Dynamics 365 data for merging the template

Step 6: After the merge process.

Merged template with empty address lines
Figure 6: Merged template with empty address lines

Step 7: To keep your documents compact, avoiding empty lines within your documents is recommended. For example, think of an address block where some customers use the Address Line 2 field, but others do not. To ensure a compact output, you want to avoid empty lines for those not using the field.

There are two options:

❶ Delete line/row if whole line/row is empty: If the value of the selected field, as well as all other fields within the same line, are empty in DataVerse, the line will be removed.

❷ Delete line/row if this field is empty: If the value of the selected field is empty, the whole line is removed independent of other content in the same line.

Place the cursor in the field you want to format. Click on the ❸ Field properties to open the options.

If the value of the selected field and all other fields within the same row in DataVerse are empty, take Option ❶.

If you need the whole line removed when only one selected field is empty, take Option ❷.

Learn more about field formatting options in DocumentsCorePack templates or how to remove empty lines.

Field properties
Figure 7: Field properties

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  No
Related Articles
  • 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
  • How to add content from SharePoint to a document
  • Using MS Word field codes in DocumentsCorePack templates
Latest Articles
  • DocumentsCorePack: Best practices for Dynamics 365 on-premises to online migration projects
  • Multilingual Support in DocumentsCorePack
  • Recap: ColorCloud 2025
  • Configure DocumentsCorePack within custom pages
  • AI-Powered Document Generation with Copilot in Sales
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 44
  • Template Designer(DCP 196
  • DocumentsCorePack(DCP 250
  • 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.