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)/Step-by-Step: How to create an initial contact template for a lead

Step-by-Step: How to create an initial contact template for a lead

348 views 0

This article outlines how to create a simple lead template. 

In this step-by-step description, we will create a lead template, consisting of a short message to the contact, relevant contact information, and our own contact details.  This template will make use of the following features: 

  • Adding fields from Dynamics 365 
  • Advanced String 
  • Condition 
  • Hyperlink fields 

This guide is based on a sample template. To view the finished sample template, please see the attached document at the bottom of this article. 

For a video version of this guide, please see the video below: 

Step 1: Setting the base entity 

When creating a template, it is always important to set your base entity first.  This is because the fields displayed in the Template Designer will be determined by this base entity, and once a field has been inserted into a template, the base entity can no longer be changed.  In this case, our base entity is Lead, so we will set the Type accordingly. 

setting the type
Figure 1: Setting the type

Step 2: Adding our text and basic structure 

Next, we will add our text and general structure to our template.  For our template, this is what we are starting with. 

text and structure
Figure 2: The added text and structure

Step 3: Adding our standard fields 

The Xs will be replaced with some fields from the Lead entity.  These fields will come from the Standard tab in the Template Designer.  Some fields, like the Owning User fields, come from lookup fields located near the bottom of the fields list. 

lookup field
Figure 3: A lookup field

Once our fields have been added, our template will look like the following: 

template so far
Figure 4: Our template so far

Step 4: Adding a date 

We also want to include a date for our template.  That can be achieved using the Advanced String field, which can be found through the Insert Field menu under the Insert Computer Item submenu.  We can add a date by entering DATETIME() in the textbox. 

date with advanced string
Figure 5: Using Advanced String to create our date field

Once you click OK, this will add the field to the template 

advanced string in template
Figure 6: Our Advanced String field, added to our template

Step 5: Adding our Hyperlink and Condition fields 

The last thing we need to include into the template is our Condition and Hyperlink fields.  We want to display hyperlinks to our email and phone, but we only want to display the phone hyperlink if it is available.  If it is not available, we want to hide it. 

First, we will include the Hyperlink field for our email.  This can be done by selecting Hyperlink through the Insert Field menu via the Insert Computed Item submenu.  The field can be formatted like the following: 

configuring the hyperlink field
Figure 7: Configuring the Hyperlink field

This pattern will retrieve the primary email during the merge process.  The Displayname must also be set before selecting OK. 

configuring the displayname
Figure 8: Configuring the Displayname

Your field should look like this in your template once finished. 

hyperlink field in our template
Figure 9: The Hyperlink field in our template

We also want to include a hyperlink to our phone number if it is available.  To do that, we need to begin by creating a Condition field.  This can be accessed through the Insert Field->Insert Computer Item submenu as well. 

When setting up our condition, we want to make sure that we check if our phone number field from our owning user has a value.  To do that, we must select the Owning User (User) in the dropdown.  From there, we can open a new dropdown that appears underneath.  In this dropdown, we can select the Main Phone field.  Finally, in the operator dropdown to the right, we must select has data to make sure that this field will only be displayed if the field contains any data. 

The condition field should look similar to the following: 

configuring our condition field
Figure 10: Configuring our condition field

Click OK.  The field should appear in the template. 

condition field in the template
Figure 11: The condition field in our template

We still need to add our phone hyperlink.  To do so, place your cursor within the condition field and access the Hyperlink field window once more.  Set up the pattern for the hyperlink like so: 

phone hyperlink
Figure 12: Configuring the Hyperlink field for our phone

Don’t forget to include the Displayname here as well. 

phone displayname
Figure 13: The Displayname for our phone

Click OK.  This will insert the field into the condition field.  If done correctly, your hyperlink field will be within the condition field. 

phone hyperlink field in template
Figure 14: The phone Hyperlink field, added to our template

Step 6: Merging our template 

At this point, your template should look like the following: 

configured template
Figure 15: Our configured template

After saving our template and merging it with a record from our environment, we get the following result document: 

result document
Figure 16: Our result document

Note that both our email and phone number are appearing.  If we were to remove the phone number from our Owning User record, you will see that the hyperlink field that contains our phone number disappears. 

result document no phone
Figure 17: Our result document, with no phone number field

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

Attached Files
#
File Type
File Size
Download
1 .docx 415.25 KB Lead First Contact

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
  • Recap: Nordic Summit 2025
  • The new Template Designer Office Add-In
  • Debugging the Template Design Office Add-In 
  • Updating Legacy SharePoint Connections 
  • What Happens After You Deploy AttachmentExtractor: Storage & Cost Savings in Dynamics 365
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
  • Important information for Dynamics 365 online customers using DocumentsCorePack and/or AttachmentExtractor
  • How to activate the DocumentsCorePack Connector for PowerApps & Microsoft Flow
  • How to insert Condition Fields in DocumentsCorePack Templates designer
  • How licenses are counted
Categories
  • *News and General Infos* 65
  • Webinars 46
  • Template Designer(DCP 197
  • DocumentsCorePack(DCP 260
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 75
  • 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.