• Release History
  • Documentation
  • Back to www.mscrm-addons.com
  • Release History
  • Documentation
  • Back to www.mscrm-addons.com
home/Knowledge Base/Template Designer(DCP)/The “Insert Computed Field” button in Open Office XML template (.docx)

The “Insert Computed Field” button in Open Office XML template (.docx)

441 views 0 Updated on June 2, 2023

This article outlines the new Insert functionalities within the Computed Items button in Open Office XML template (.docx). The Insert Computed Fields button allows you to make basic arithmetical operations with CRM-number fields. 

Requirements: Available for DocumentsCorePack (DCP) for MS CRM 2013, v6.10 and higher. All our addons come with a 14 days free trial. Click here to download.

Important: The CRM fields must contain a number.

Example: 

Sample result after using the math functions of the Computed-Fields functionality.
Sample result after using the math functions of the Computed-Fields functionality.

Figure 1: A possible result after using the math functions of the Computed-Fields functionality

OVERVIEW: The Computed Items button

The new Computed Items button contains the following new functionalities:

  • The Insert Advanced String Field button allows you to insert as many fields as you want in one single field.
  • The Insert Computed Field button allows you to make basic arithmetical operations with CRM-number fields.
The Computed Items button.
The "Insert String/Computed field" options.

Figure 2: Computed Items > Insert String/Computed field

GENERAL INFORMATION 

Here is an example with predefined CRM-number fields.

Predefined CRM number fields.

Figure 3: Predefined CRM number fields

Please note: You can define other CRM fields to be number fields. For example, if you don’t need the Middle Name field in the contact entity and would prefer to type in a number, you can define the field to be a number field. If you did not define the field as a number field and tried to enter a number, you would see the following message box:

Message box for no number field.

Figure 4: Message box – no number field

Step-by-step description on how to use the “Insert Computed Field” button

Step 1. Open the DocumentsCorePack Task Pane 
You can find the new function in the DCP Task Pane. To get there, open an existing template or create a new one. Got to the www.mscrm-addons.com tab, click on Insert MailMerge Fields in the toolbar and create an Office Open XML (.docx) document by answering the question with Yes.

Opening the DCP Task Pane.
Figure 5: Open DCP Task Pane

The DCP Task Pane appears.

The DCP Task Pane.

Figure 6: DCP Task Pane

Step 2. Choose the appropriate “Insert” functionality
Click on the Insert drop-down and choose the Insert Computed Field functionality.

The Computed Items button.
The Insert Computed-Field button.

Figure 7: Insert Computed-Fields

3. Add/Subtract/Divide/Multiply CRM number and money fields
In the next window, you have the ability to make basic arithmetical operations with CRM-number fields by inserting add +, subtract –, divide / and multiply * number fields with a double-click. You can also define a name for the field, for example, Invoice Dec. 213. If no name is typed in, the default name Computed Field will be set.

Add/Subtract/Divide/Multiply CRM number and money fields.

Figure 8: Add/Subtract/Divide/Multiply CRM number and money fields

Step 4. The result
If the calculation can be performed, you will see the result value in the merged document.

Sample result.

Figure 9: Result 

If the calculation cannot be evaluated, you will see the resulting error in your document, as shown below. This might be the case if your calculation uses a string field that does not contain a number as a value. 


Example of an error.

Figure 10: Result – Error 

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

Was this helpful?

Yes  1 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.