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 define dynamic document subjects in DocumentsCorePack templates  

How to define dynamic document subjects in DocumentsCorePack templates  

1845 views 3 Updated on January 23, 2024

This article explains how to set the subject of an activity in Dynamics 365 using a template.

The process involves accessing the Document Name and Subject section and setting the subject pattern in your template. The resulting subject will be automatically set when creating and attaching a document based on the template to an activity.

Please note: If you only define a dynamic document name, the document name will be used for the subject too.

Example: We want the subject of activities to be Quote_[Name of the quote]_[Quotenumber].

Step 1: Accessing the Document Name and Subject tab

Access the (1) Document Name and Subject tab under the Advanced Template Settings in your template.  To set the document subject separately, check the (2) “Set document name and subject separate” checkbox. Then, click on the (3) Subject tab.

The Document Name and Subject tab
Figure 1: The Document Name and Subject tab

Step 2: Set your subject pattern

Add fields from the treeview or add text to set your subject in the property designer.

Details about the syntax for this property can be found here. 

The pattern set for our subject
Figure 2: The pattern set for our subject

Step 3: Save your template.

Save your template, either by saving it locally or by saving it your Dynamics 365 environment.

Result

When creating and attaching a document based on this template to an activity, the subject of the newly created activity will be automatically set.

The generated subject as shown in our newly created email
Figure 3: The generated subject as shown in our newly created email

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

Was this helpful?

3 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
  • Recap: Nordic Summit 2025
  • The new Template Designer Office Add-In
  • Debugging the Template Design Office Add-In 
  • Updating Legacy SharePoint Connections 
  • What Happens After You Deploy AttachmentExtractor: Storage & Cost Savings in Dynamics 365
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* 65
  • Webinars 46
  • Template Designer(DCP 197
  • DocumentsCorePack(DCP 260
  • 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.