This article explains how to create label templates with DocumentsCorePack TemplateDesigner.
Requirements: DocumentsCorePack for MS CRM 2013 (Client 6.33) and higher.
There are two options to create and merge a label template.
A. Select various records at once – each label equals one record from the main entity of the template.
(For example, if you want to merge an account label template for a few companies, you can select different companies at once. As a result, you get one label per selected account.)
B. Select one record and set relations – each label equals one record from the predefined relationship.
(For example, if you want to merge an Account Label Template for one company, but different employees, you can select one company to receive all related contacts. As a result, you get one label per related contact.)
Option A – Select various records at once
How to create a label template
Please note: In general, all Microsoft Word formatting options are supported. However, the label template must be created in advance and saved as .docx.
1. To begin creating your label template, open MS Word and navigate to the www.mscrm-addons.com tab and click on the Insert MailMerge Fields button.
Figure 1: Word ribbon www.mscrm-addons tab
2. The DocumentsCorePack TemplateDesigner opens. Press the ❶ Advanced Template Settings. The Template Settings open.
Select the ❷ General tab. In the General Settings overview, check off ❸ Mark as Label Template.
❹ If you press the edit button, the Label Template Sorting dialog opens. Here you can setup a sorting for your labels if this is required, such as for names or postal codes. (see Figure 3)
❺ Press the OK button.
Figure 2: TemplateDesigner Settings
In this optional Label Template settings, you can specify several sorting criteria. In this example, the labels are sorted by name in descending order.
Figure 3: Optional edit-function
After you have checked Mark as Label Template, these 3 options are added in the MS Word ribbon.
Figure 4: MS Word ribbon with additional options
3. Press Insert Label and the Label Options open. Here you can make decisions about your label dimensions.
Confirm with the OK button.
4. The selected label format has been inserted into your template.
Please note: If you cannot see any grid lines to limit the label cells, you can make them visible by navigating to the Layout tab and selecting View Gridlines. They will not be displayed in the result, but it can help manage your label content in the preparations for your template, as the label cells are arranged from left to right and from top to bottom.
Figure 6: MS Word ribbon – Layout Setting
Next, it is important to mark one cell as the label-cell. To do so, simply set the cursor in the first cell of the document and click on the Mark as Label Cell button.
5. Once the cell is marked, select an entity, such as Account. Then insert fields into the label-cell by double clicking on them.
6. Next, you need to define the remaining cells as label-cells as well. To do so, place your cursor in the first cell and click on the Duplicate Labels button.
This information message reminds you to check your cursor. Confirm it.
7. You have now successfully created a Label Template.
Figure 10: Successfully created Label Template
8. The next step is to save your template.
How to merge a label template with various records at once
To merge a label template for various records, navigate to Accounts in your Dynamics 365 and mark the companies you want to merge. Press the Create Document button.
Figure 12: Marked Accounts in your Dynamics 365
The DocumentsCorePack dialog opens. Select your Label Template and click Next.
Choose the FileType and decide on your Label Start Position. If you want to send this document directly to the printer, select Print document. Then click on Create Labels.
Before you finish your Label Template, you can have a preview. If it looks correct, press the Finish button.
The result should look like the below example.
Figure 16: Example for merged Label Template
Option B – Select one record and set relations
Please note: In general, all Microsoft Word formatting options are supported. However, the label template must be created in advance and saved as .docx. It is mandatory to set a regarding relationship when creating the template in advance.
1. To create your label template, first follow steps 1-4 of Option A. Next, switch to the ❶ Additional tab, click on the ❷ Add Relationship/Entity drop-down menu and click on ❸ All Contacts. This makes sure that the relation is set.
2. Now that the relation is set, you can choose the appropriate fields from the DocumentsCorePack Task Pane. Continue on with step 5 of Option A and create and save your label template.
3. Once you are finished, please navigate to the main form of your Account entity in your Dynamics 365 and mark all contacts that should be displayed on the label. Next, click on the Create Document button, select your label template and press Next.
Figure 18: Mark contacts in the Account entity
4. The DocumentsCorePack dialog opens. Select your label template.
Figure 19: Select Label Template
5. Choose the FileType and decide on your Label Start Position. If you want to send this document directly to the printer, select Print document. Next, select Create Labels.
Figure 20: Choose FileType and LabelPosition
This warning may appear. If it does, click on Yes.
6. The option to preview your document appears. If it looks correct, click Finish.
Figure 22: Preview of the document
7. You now have your result.
Figure 23: Result with selected record and set relations
That’s it! We appreciate your feedback! Please share your thoughts by sending an email to support@mscrm-addons.com.