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)/Working with Product Properties in DocumentsCorePack

Working with Product Properties in DocumentsCorePack

966 views 0

Product properties are attributes that represent a single detail of a product like its size, color, component, and so on (For details see: Use properties to describe a product).  

In this article, we will detail the behavior behind product properties, how to access them, and how to add them to your templates using DocumentsCorePack.

Accessing and Adding Product Properties

Product properties behave differently from normal fields. To support such fields, so-called virtual fetches are used. Because of this, they cannot be accessed like other fields, i.e., they cannot be found in the “Standard” tab in the Template Designer, and they cannot be added manually to a table.  Instead, the “Properties” look-up will be added automatically to a table under the “Additional” tab for tables where products are listed as line items:

Product properties element in treeview
Figure 1: A Quote Line table with the “Properties” look-up

In the above example, the look-up is displayed under the Quote Line table, but this look-up will also be added automatically to similar tables, such as Opportunity Line, Invoice Line, and Order Line.

When the “Properties” look-up is expanded, a list of all available product properties will be displayed.  This list includes every product property from each product that has them.  To add a specific field from a property, click on the look-up for the desired property and select the needed field.

Expanded propertiy list
Figure 2: The expanded look-up

Important: Normally, the Template Designer only lists the fields specific to an entity.  In this case, the Template Designer lists all product properties across all products since each product can have differing properties.  Due to this, users must know ahead of time which properties will be needed for their template.  Otherwise, an irrelevant property can be added, leaving a blank spot in the resulting document (see below).

Example

In our environment, we have a Quote that has a few products listed under Quote Line.  Each product has at least one property.

example quote with 3 products
Figure 3: An example quote listing its quote lines
Example of a property of one product
Figure 4: An example property under its respective product

For our template, we want to create a Quote template that lists the products and their respective properties.  To begin with, we create a template with Quote as the base entity and create a relationship to Quote Line.  Once that is done, you will notice the “Properties” look-up has been added to the Quote Line table (as shown in Figure 1 above).

We can create a Quote Line table based on the name field of the entity. We will leave an extra column for our product properties.

Figure 5: Our table based on the Quote Line entity, without product properties

Under the “Properties” look-up, we can find the product properties we need.  Since we want the name and value of these properties, we expand the look-up and include the “Name” and “Value” field under each property.

sample template
Figure 6: Our table based on the Quote Line entity, now including product properties

If we were to generate a document based on this template right now, we would find that our products and their properties would be listed.

Result document with empty lines
Figure 8: The resulting table

Avoiding empty lines

This table is not quite finished. The resulting table still has some empty lines as a result of every property being listed for each product. To work around this, you can insert the product property fields within Microsoft Word’s own IF fields (NOTE: DCP’s own Condition fields will not work with product properties).

Be sure to keep the structure of the IF field in mind. We only want each property to be displayed if the property exists for a given product. In our case, the structure of the IF field would look like this:

{ IF “PROPERTY_NAME” = “” “” “PROPERTY_NAME: PROPERTY_DYNAMICPROPERTYOPTIONNAME” \* MERGEFORMAT }

If-Conditions added
Figure 9: The Quote Line table, now with IF fields wrapping the product properties
result document without empty lines
Figure 10: The resulting Quote Line table, now with no gaps thanks to the IF fields

Helpful Resources:

  • Working with translations of product properties

That’s it!  If you would like to give us any feedback, please contact us by sending an email to support@mscrm-addons.com.

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.