• 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 

1828 views 1 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?

1 Yes  No
Related Articles
  • Office Theme Support of DocumentsCorePack
  • Dynamic Document Properties
  • Switch environments in the DocumentsCorePack Template Designer
  • Working with Field Service Inspection responses
  • Create an inspection report for a Work Order
  • Create an inspection report for a Work Order Service Task
Latest Articles
  • New DocumentsCorePack Connector features for Power Automate
  • Office Theme Support of DocumentsCorePack
  • AssureSign for DocumentsCorePack
  • Dynamic Document Properties
  • How to conditionally remove a watermark in DocumentsCorePack templates
Popular Articles
  • Where do I find the Unique Organization name in Microsoft Dynamics 365?
  • mscrm-addons.com Application Access for Dynamics 365 (App Access) – DocumentsCorePack
  • DocumentsCorePack Template Designer – Getting Started
  • DocumentsCorePack Online Service Configuration
  • Step-by-Step: How to configure a One-Click-Action
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
  • Online Services: Required Application Permissions
  • Information on Security roles: Which roles are needed for which solution?
Categories
  • *News and General Infos* 51
  • Webinars 35
  • Template Designer(DCP 173
  • DocumentsCorePack(DCP 191
  • 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.