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)/Template Settings for DocumentsCorePack ( OpenXML )

Template Settings for DocumentsCorePack ( OpenXML )

479 views 0 Updated on July 27, 2022

This blog article provides you with a short description of the different template settings available for DocumentsCorePack (DCP) for MS CRM 2011.

CreateActivitiesFor:
If you don’t want to add the activity into the main-entity (for example, if you are generating a quote and want to save the activities to the related contact or account), then select  the related entity to which the created activity should be associated in the tree.

Syntax: Entityname, primarykeyfield. For example: contact,contact_contactid > In this case the activity will be saved to the contact.

Additionalfields:
To read out additional fields (attributes) which are not defined in the document. Say, that those fields are loaded into the template automatically (e.g id-fields…). This is very helpful when you want to send emails via DocumentsCorePack and you don‟t want the email adress to be shown on the template.

DocumentName:
This setting predefines the name of the documents generated with this template. It is possible to use data from fields out of CRM to be part of the document name. With this it is possible to generate the document name dynamically, based on constant characters and/or values of fields .
Constant characters have to be in single quotes.
To use field values in the DocumentName, you have to write the fieldname ( schemaname ) surrounded by << and >>.

Some examples:

DocumentName possible DocumentName results
‘quote-‘+<>.pos(4,5) quote-12345
<>+’-‘+<> TestCompany-QUO-12345-KWKJQ6

Please note: It is important that the inverted commas are also set!

Functions:
“.pos(x,y)” will insert y signs from the xth position.
“.left(x)” will insert the first x – signs
“.right(x)” will insert the last x signs of the string

SaveTo Sub-Folder:
This setting predefines the name of the subfolder generated with this template. With this setting, it is possible to save the generated document in a subfolder.
It is possible to use data from fields out of CRM to be part of the subfolder name.
That gives you the possibility to generate the subfoldername dynamically, based on constant characters and/or values of fields.

Constant characters have to be in single quotes.

To use field values in the DocumentName you have to write the fieldname ( schemaname ) surrounded by << and >>.
Some examples:

SaveTo Sub-Folder possible Subfolder results
‘quote-‘+<>.pos(4,5) quote-12345
‘invoices’ invoices

It is important that the inverted commas are also set!

Functions:
“.pos(x,y)” will insert y signs from the xth position.
“.left(x)” will insert the first x – signs
“.right(x)” will insert the last x signs of the string

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

Reworkneeded
There are other articles which have the same infos on it

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.