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.
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.
Step 3: In order to save it to your Dynamics 365 click the Save Template button in the Word ribbon.
Step 4: This window opens. Define a name for your template and confirm with Save.
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.
Step 6: After the merge process.
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.
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.
That’s it! We appreciate your feedback! Please share your thoughts by sending an email to support@mscrm-addons.com.