mscrm-addons.com logomscrm-addons.com logo
  • Release History
  • Knowledge Base
  • Documentation
  • Contact Support
  • Release History
  • Knowledge Base
  • Documentation
  • Contact Support
home/Knowledge Base/Template Designer(DCP)/How to use product translations in DocumentsCorePack templates

How to use product translations in DocumentsCorePack templates

1586 views 0 Updated on April 12, 2025

Microsoft Dynamics 365 allows users to define translations for product properties, such as product name or product description, as can be seen in this article. By default, DocumentsCorePack will load the language defined by the user that is generating the document. This article describes how to set the language of product properties loaded into a certain template.

Use Case: Let’s assume your office is in England and your users are all using Dynamics 365 in English. You have customers out of Germany and you need to send documents that should show the names of products in German.

Product translations are stored in the Business Data Localized Label table. This entity is only loosely bound to the product entity and the fields within do not have Display Names. Therefore, you will need to perform the following steps to retrieve fields in the desired language:

1. Enable support for fields without a Display Name

First, we need to enable our Template Designer within Microsoft Word to work with fields that do not have a Display Name defined. This can be done by:

❶ Open the Insert MailMerge Fields taskbar.

❷ Open the treeview settings.

❸ Enable the Add fields without DisplayName option and hit OK.

Choose to add fields without a Display Name
Figure 1: Enable support for fields without a Display Name

2. Add a relationship to your template

Typically you will need product translations to be available for products. Thus, we would recommend to resolve the relationship to products (e.g. Quote ⇒ Quote Detail ⇒ Product) using our relationship designer.

Since the translation is only loosely bound, we cannot use our relationship designer, but will instead need to add the fetch-statement that retrieves translations to our query manually. To do so, please follow the following steps.

❶ Select the Additional tab.

❷ Select the relationship to the product entity you want to add translations to.

❸ Press the Edit button.

❹ Switch to the FetchXML tab.

Open the FetchXML tab
Figure 2: Opening the FetchXML statement of your relationship

Now the most important part: Adding the relationship to deliver translated content in the preferred language.

The fetch that needs to be added should look as follows:

<link-entity name='businessdatalocalizedlabel' from='objectid' to='productid' alias='productid_businessdatalocalizedlabel'>
	<attribute name='languageid' />
	<attribute name='label' />
	<attribute name='objectcolumnname' />
	<attribute name='businessdatalocalizedlabelid' />
	<filter type='and'>
		<condition attribute='objectidtypecode' operator='eq' value='1024' />
		<condition attribute='objectcolumnname' operator='eq' value='name' />
		<condition attribute='languageid' operator='eq' value='1031' />
	</filter>
</link-entity>

IMPORTANT: The language-id specified in the following line defines the language to be retrieved. You can find the codes in Dynamics 365 ⇒ Advanced Settings ⇒ Administration ⇒ Languages

<condition attribute='languageid' operator='eq' value='1031' />

In this example, we chose to load language 1031 (German).

We recommend copying the above fetch statement, setting the language-id as needed, and adding it to your fetch from the predefined relationship. In our case, this looks as follows:

Figure 3: Add fetch-statement for loading translated content to your fetchxml

Hit OK. A new node called Business Data Localized Label will now be visible in your tree.

3. Add field to your template

The field that will now deliver the product name in the correct language is called “*label“. You can go ahead and add this field to your document as needed.

You will also find a working demo-template that has the relationship included attached to this document.

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

Attached Files
#
File Type
File Size
Download
1 .docx 29.25 KB ProductTranslation_Demo_Template

Was this helpful?

Yes  1 No
Related Articles
  • Introducing the DocumentsCorePack Template Designer Office Add-In (Beta)
  • 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
Leave A Comment Cancel reply

You must be logged in to post a comment.

Latest Articles
  • What Happens After You Deploy AttachmentExtractor: Storage & Cost Savings in Dynamics 365
  • Deploying DocumentsCorePack: Setup, Automation, and Real Business Impact in Dynamics365
  • Introducing the DocumentsCorePack Template Designer Office Add-In (Beta)
  • How to Eliminate Excess Storage Costs in Microsoft Dynamics 365 Without Losing Access to Emails and Attachments
  • 3 Ways DocumentsCorePack Transforms Proposal, Quote, and Contract Creation
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 to insert Condition Fields in DocumentsCorePack Templates designer
  • How licenses are counted
Categories
  • *News and General Infos* 64
  • Webinars 45
  • Template Designer(DCP 196
  • DocumentsCorePack(DCP 258
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 75
  • 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
  • © 2025 www.mscrm-addons.com. All Rights Reserved.