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)/Step-by-Step: How to create a quote template 

Step-by-Step: How to create a quote template 

1751 views 0

This article outlines how to create a simple quote template. 

In this step-by-step description, we will create a quote template, consisting of a list of related products, relevant quote information, and tax/discount details.  This template will make use of the following features: 

  • Adding fields from Dynamics 365 
  • Creating relationships 
  • Condition fields 
  • Join Table 

This guide is based on a sample template. To view the finished sample template, please see the attached document at the bottom of this article. 

For a video version of this guide, please see the video below: 

Step 1: Setting the base entity 

When creating a template, it is always important to set your base entity first.  This is because the fields displayed in the Template Designer will be determined by this base entity, and once a field has been inserted into a template, the base entity can no longer be changed.  In this case, our base entity is Quote, so we will set the Type accordingly. 

setting the type
Figure 1: Setting the type

Step 2: Adding our text and general structure 

We will begin by including our text and general structure to our template.  For this example, this is what our template looks like. 

text and structure
Figure 2: Adding the text and structure

Step 3: Adding our standard fields 

To create our quote template, we need to include some fields that cover the basic information about our quote, such as details about our customer and the quote itself.  These standard fields will come either from the Quote entity, or from its lookup fields 

standard fields
Figure 3: The structure with our standard field added

Step 4: Creating our table 

For our table, we will base it on the Quote Line entity.  We will create it by accessing the Relationship Designer and locating the Quote->Quote Line relationship.  Once that relationship has been selected, we will select the Amount, Description, Price Per Unit, and Quantity fields. 

quote line table
Figure 4: Creating our Quote Line table

After we select the fields, we need to add a Link Element.  This can be found at the bottom of the Relationship Designer. 

adding a link element
Figure 5: Adding a link element

This will bring us to another Relationship Designer window.  Here, we need to select the Product->Quote Line relationship.  Once that is selected, we must also select the Name field to get the name of our product. 

product entity
Figure 6: Establishing a relationship with the Product entity

With that, click OK on both Relationship Designer windows.  If done correctly, your fields list under the Additional Tab should look something like the following: 

quote line field list
Figure 7: The field list for our Quote Line table

To create the table, double click on the Name field.  We will structure our table like so: 

table set-up
Figure 8: Our table set-up

Then, we will fill in the fields of our table, and give each column an appropriate name.  We will also add the Total Detail Amount field from the Standard tab in the footer.  Our table now looks like the following: 

our table
Figure 9: Our table so far

Step 5: Setting up the condition fields 

On top of our table of products, we also want to include some extra fields that show any discounts or taxes that may be applied to our invoice.  However, we only want to include these fields if they are applicable i.e.: if there are no discounts available, we do not display that field. 

This is where Condition Fields come into play.  We can include these fields in our template to do exactly as mentioned. 

We’ll begin by creating a Condition Field through the Insert Fields menu. 

inserting condition field
Figure 10: Inserting a Condition field

We will first create a condition field in the footer next to our Total Detail Amount field.  We will use this field to print out text indicating if the Total Detail Amount is the total or just the subtotal. 

To do this, we will need to create an else block.  This can be done by selecting the Create else block checkbox in the Relation section.  Then, we will select the Total Discount Amount and Total Tax fields in the designer and set their operators to greater than.  For the value, both will be set to 0. 

setting up the condition
Figure 11: Setting up our condition

It’s important to ensure that our fields are grouped.  Otherwise, the condition will not work correctly.  To group them, select both rows and click the Group OR button. 

grouping the conditions
Figure 12: Grouping the conditions

Click OK.  The condition field will be created where your cursor was last positioned.  Since we set the condition field to be created with an else block, two fields should be positioned right next to each other.  In our table, the condition field should look like this: 

if else block
Figure 13: The if-else blocks, as shown in the table

Since we want this field to indicate if the Total Detail Amount is a total or subtotal, we will enter text into each condition block. 

text for if else
Figure 14: Entering the text into our if-else blocks

With the text entered as above, the text “Subtotal:” should appear if the Total Discount Amount or Total Tax fields are greater than zero.  Otherwise, the text “Total:” will appear. 

We still need to create a few more condition fields.  Under our product table, we want to display the discount and tax information, along with the quote’s total amount, if those fields contain data.  In total, we will create three more condition fields. 

We will begin with the discount condition field.  This can be created like the previous condition field, but instead, we will leave the else block blank, and select only the Total Discount Amount field. 

discount condition
Figure 15: Setting up our discount condition

The above process can be repeated for the Total Tax condition field. 

For our total condition field, we can simply reuse the existing condition.  Just select the Use existing condition checkbox and select the condition we used previously for the “Subtotal/Total” condition blocks. 

use existing condition
Figure 16: The ‘Use existing condition’ checkbox

When those condition fields are finished, they should be placed similar to the following: 

condition fields
Figure 17: Our condition fields, located under our table

We will add standard 4×1 Word tables to each condition field, as we later want to keep our data organized. 

word tables in conditions
Figure 18: Our Word tables in our condition fields

We will add some text to each table, and within the first two condition fields, we will add a Join Table field. 

The Join Table field will combine the first table immediately above and below it.  For our template, we want to include this to combine our tables for organizational purposes.  This field can be added through the Insert Field menu. 

join tables field
Figure 19: The ‘Join Tables’ field

We will add this field below the discount and tax tables, but place them in such a way that they are still within the condition fields. 

conditions with join table
Figure 20: Our condition fields, now with the ‘Join Table’ fields

Then, we remove some of the whitespace separating the tables add our relevant fields.  The relevant fields are the Total Discount Amount, Total Tax, and the Total amount fields. 

whitespace removed
Figure 21: Our condition fields and tables, now with whitespace removed

Step 6: Generating a document  

At this point, the template should something like this. 

our created template
Figure 22: Our created template

Then, we remove some of the whitespace separating the tables add our relevant fields.  The relevant fields are the Total Discount Amount, Total Tax, and the Total amount fields. 

If we were to merge this template with some a Quote record in our environment, this is what we would have as a result.  Note how the discount and total tables have combined: 

generated document
Figure 23: Our generated 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 418.94 KB Quote sample

Was this helpful?

Yes  No
Related Articles
  • Debugging the Template Design Office Add-In 
  • Introducing the DocumentsCorePack Template Designer Office Add-In
  • 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
Latest Articles
  • Locating Raw Inputs and Outputs in Power Automate
  • Step by Step: How to execute an OCA in a Power Automate flow 
  • The Hidden Cost of CRM Storage — And How to Eliminate It 
  • Recap: Nordic Summit 2025
  • The new Template Designer Office Add-In
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
  • How to insert Condition Fields in DocumentsCorePack Templates designer
  • 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
Categories
  • *News and General Infos* 65
  • Webinars 46
  • Template Designer(DCP 197
  • DocumentsCorePack(DCP 262
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 76
  • 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.