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)/DEPRECATED – DocumentsCorePack Property Syntax (Dynamics 365)

DEPRECATED – DocumentsCorePack Property Syntax (Dynamics 365)

479 views 1

NOTE: This article details the property syntax for Template Designer version 10.47 and 
older. To view the documentation on the property designer as of 10.48, please see here.

Certain properties within DocumentsCorePack templates are defined by fixed text and Dynamics 365 fields that can be additionally modified by certain functions.  This article serves to cover the basic syntax of these properties and the advanced options that can be used.

The basic syntax:

Fields from Dynamics 365 are enclosed by << and >> when you insert them from the tree view.

Fields
Figure 1: Fields

Fixed text must be typed manually into the text field and must be enclosed by single quotes (‘ ).

string
Figure 2: String

To combine several Dynamics 365 fields and fixed text, the plus sign (+) must be used

plus

Figure 3: Plus

The advanced syntax:

Function calls can be applied to Dynamics 365 fields by using a . (dot) and the actual function call.
There are also standalone method calls supported. The function call must end with brackets.
Certain functions may also support parameters or have mandatory parameters.

Function 'pos' with parameters 2 and 5
Figure 4: Function ‘pos’ with parameters 2 and 5
Standalone function DATETIME without parameters
Figure 5: Standalone function DATETIME without parameters
The following table contains a list of all available functions that can be applied to Dynamics 365 fields.
For all examples below, please assume the <> field will be MSCRM-addons.com after the merge.
Function Description Example
<>.pos(x,y) will insert y signs from the xth
position.
<>.pos(2,5)
Result: “CRM-a”
<>.left(x) will insert the first x – signs.
E.g.: <>.left(5)
<>.left(5)
Result: “MSCRM”
<>.right(x) will insert the last x signs of the string. E.g.: <>.right(3) <>.right(3)
Result: “com”
<>.upper() displays all values in the field in capital letters. Result: “MSCRM-ADDONS.COM”
<>.lower() displays all values in the field in small letters. Result: “mscrm-addons.com”
<>.caps() displays the first letter in a
sentence in capital letter
Result: “Mscrm-addons.com”
<>.firstcaps() displays the first letter in the field before as capital letter. Mscrm-addons.com
<>.invert() reverses every case Result: “mscrm-ADDONS.COM”
The following table contains a list with all available functions that can be applied to Dynamics 365 fields
Function Description Example
guid() generates a unique serial
number
b8a4d649-342e-4bfc-9a6f-b4afd4741b4
DATETIME() inserts the actual and local date
and time
06.12.2013 16:06
DATETIME(dd.MMMM.yy, de-DE) there are many different
formatting options for displaying
the culture name for different
countries For more information
please click here.
06.Dezember.13
DATETIME(DD.MMMM.YY ‘ ‘
mm:ss, de-DE)
For more information about the
different cultures which can be
displayed, please click here.
06.Dezember.13 16:06


The above syntax applies to the following properties and special fields:


Template Properties 

  • Document Name and Subject
  • Sub Folder
  • Sharepoint Metadata

Special Document Fields

  • Calculated Fields
  • Advanced String
  • Hyperlink field
  • QR Code

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
  • 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.