• Release History
  • Documentation
  • Back to www.mscrm-addons.com
  • Release History
  • Documentation
  • Back to www.mscrm-addons.com
home/Knowledge Base/Template Designer(DCP)/Template Settings for DocumentsCorePack ( OpenXML )

Template Settings for DocumentsCorePack ( OpenXML )

231 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
  • 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 Online Service Configuration
  • DocumentsCorePack Template Designer – Getting Started
  • 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.