• Release History
  • Documentation
  • Back to www.mscrm-addons.com
  • Release History
  • Documentation
  • Back to www.mscrm-addons.com
home/Knowledge Base/Template Designer(DCP)/How to define dynamic document names in DocumentsCorePack templates 

How to define dynamic document names in DocumentsCorePack templates 

2306 views 2 Updated on November 22, 2022

This article describes how to define dynamic document names in DocumentsCorePack (DCP) templates. The “Document Name” property allows you to define a name or a name pattern within DCP templates. Once defined, documents generated automatically will have an automatically generated specific name.

Example: You have a document for a Quote ID: QUO-01007-B9F71. If the document name property is defined as “Quote_<<quotenumber>>” the generated document will be named “Quote_QUO-01007-B9F71.pdf“. Thus, all fields from the Dynamics 365 record itself can be used within the document name. 

If you are unsure how to gain access to the template settings to set the document subject, have a look at this article before continuing. 

Step 1: Access the “Document Name and Subject” section

❶ Navigate to “Document Name and Subject”. 


Figure 1: Template settings 

Step 2: Set your ❷ “Document Name Pattern”

Insert a field by double-clicking it in the tree or by typing in a fixed text enclosed by single quotes. 

The basic rules for the syntax of this property are: 

  • Dynamics 365 fields have to be enclosed by <<and>> 
  • Fixed text has to be enclosed by single quotes (‘). 
  • Fields and fixed text have to be combined with a plus (+). 
  • You can display the name in upper case when using the upper function. Example: Documentname: ‘Inv-‘+<<name>>.upper(). 

Details about the syntax for this property can be found here: DocumentsCorePack Property Syntax.


Figure 2: Syntax – Pattern for this property

Step 3: Save your template

Before you can use or test your template, you must save it. You can save your template locally with the standard ❶ “Save”,  “Save as“ funcionality of MS Word, or you can use the ❷ “Save template“ option of the DCP TemplateDesigner in order to publish the template to Dynamics 365. 


Figure 3: Save – options

Step 4: Test your template

A step-by-step description of how to quickly test your template can be found here. 


Figure 4: Result

Related Topics: 

How to set the Document Subject
List of available template settings 

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

Was this helpful?

2 Yes  No
Related Articles
  • Integrating JSON data into documents
  • Simplify Contract Processes with Dynamics 365 + E-Signature 
  • How to update the metadata in the DocumentsCorePack Template Designer
  • Working with Product Properties in DocumentsCorePack
  • How to work with the Relationship Manager
  • Using virtual tables in DocumentsCorePack
Latest Articles
  • Template Management in DocumentsCorePack 
  • “Undefined”-labels in Chrome 114 and higher
  • Integrating JSON data into documents
  • Generate large documents using the Multipart-feature of DocumentsCorePack 
  • Recap: DynamicsMinds Conference 2023
Popular Articles
  • DocumentsCorePack Template Designer – Getting Started
  • Where do I find the Unique Organization name in Microsoft Dynamics 365?
  • Step-by-Step: How to configure a One-Click-Action
  • mscrm-addons.com Application Access for Dynamics 365 (App Access) – DocumentsCorePack
  • DocumentsCorePack Online Service Configuration
Top Rated Articles
  • IMPORTANT information for Dynamics 365 online customers using DocumentsCorePack and/or AttachmentExtractor
  • How to activate the DocumentsCorePack connector for PowerApps & Microsoft Flow
  • Step-by-Step: How to configure a One-Click-Action
  • “Undefined”-labels in Chrome 114 and higher
  • “Blocked by Conditional access” error in Azure Active Directory
Categories
  • *News and General Infos* 52
  • Webinars 36
  • Template Designer(DCP 181
  • DocumentsCorePack(DCP 198
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 62
  • PowerSearch (PS 48
  • ActivityTools (AT 59
  • SmartBar (SB 53
  • GroupCalendar (GC 46
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.