{"id":20451,"date":"2019-09-11T12:18:31","date_gmt":"2019-09-11T12:18:31","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=20451"},"modified":"2019-09-11T12:18:51","modified_gmt":"2019-09-11T12:18:51","slug":"print-current-local-date-time-in-dynamics-365-crm-word-template","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2019\/09\/print-current-local-date-time-in-dynamics-365-crm-word-template\/","title":{"rendered":"How to print current local date and time in Dynamics 365 CRM Word Template"},"content":{"rendered":"<h2><strong>Introduction<\/strong><\/h2>\n<p>Dynamics 365 CRM word template allows users to make their own standardized entity specific template to represent data according to their business standards.<\/p>\n<p style=\"text-align: justify;\">It is a requirement for businesses today to send quotation of their products or services to their customer. For this they mostly prefer to use Microsoft word template with their own set of standards on which they can create the required quotation against any specific customer easily. However, the quotation must have the current date and time on which it was generated.<\/p>\n<p style=\"text-align: justify;\">We think that this can be very much achieved by making use of Microsoft world macros. But as we have no experience in macros we thought of a workaround option that we can use to show current local date and time on the document generated through word template.<\/p>\n<p>So in this blog, we will show how we can get the current local date &amp; time in word template:<\/p>\n<p>Steps 1 &#8211; Go to Customization &gt;&gt; Entities &gt;&gt; Preferred Entity as Quote &gt;&gt; Fields &gt;&gt; New<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20452\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/1Dynamics-365-word-template.png\" alt=\"Dynamics 365 word template\" width=\"1020\" height=\"507\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/1Dynamics-365-word-template.png 1020w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/1Dynamics-365-word-template-300x149.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/1Dynamics-365-word-template-768x382.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/1Dynamics-365-word-template-660x328.png 660w\" sizes=\"(max-width: 1020px) 100vw, 1020px\" \/><\/p>\n<p>Step 2 &#8211; Create a date &amp; time field on the CRM as shown below:<\/p>\n<p>Name: Today\u2019s Date<\/p>\n<p>Data Type: Date and Time<\/p>\n<p>Field Type: Calculated<\/p>\n<p>Behavior: User Local<\/p>\n<p>Format: Date only or Date and Time as per requirement<\/p>\n<p>Next, click Edit button next to calculated field.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20453\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/2Dynamics-365-word-template.png\" alt=\"Dynamics 365 word template\" width=\"763\" height=\"533\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/2Dynamics-365-word-template.png 763w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/2Dynamics-365-word-template-300x210.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/2Dynamics-365-word-template-660x461.png 660w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/2Dynamics-365-word-template-200x140.png 200w\" sizes=\"(max-width: 763px) 100vw, 763px\" \/><\/p>\n<p>Step 3 &#8211; Calculated field allows us to set the value of field as per the conditions provided but we want today\u2019s date without any conditions. So in the action tab use the NOW() function which will give the current date and time.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20454\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/3Dynamics-365-word-template.png\" alt=\"Dynamics 365 word template\" width=\"1013\" height=\"400\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/3Dynamics-365-word-template.png 1013w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/3Dynamics-365-word-template-300x118.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/3Dynamics-365-word-template-768x303.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/3Dynamics-365-word-template-660x261.png 660w\" sizes=\"(max-width: 1013px) 100vw, 1013px\" \/><\/p>\n<p style=\"text-align: justify;\">Step 4 &#8211; Download Word Template Settings &gt;&gt; Templates &gt;&gt; Document Templates &gt;&gt; New or Any entity &gt;&gt; Ribbon Button &gt;&gt; Excel Template or <a href=\"https:\/\/docs.microsoft.com\/en-us\/dynamics365\/customer-engagement\/admin\/using-word-templates-dynamics-365\">follow<\/a> Microsoft Doc to download Word Template.<\/p>\n<p style=\"text-align: justify;\">Step 5 &#8211; Go to the word template downloaded from Dynamics 365 CRM and on the Developer tab (if developer tab is not visible <a href=\"https:\/\/docs.microsoft.com\/en-us\/dynamics365\/customer-engagement\/admin\/using-word-templates-dynamics-365#step-2-enable-the-developer-tab\">click here<\/a>) click the XML Mapping Pane.<\/p>\n<p>Step 6 &#8211; Place Todays\u2019 Date field on the word template as shown below:<\/p>\n<p style=\"padding-left: 80px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-20455\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/4Dynamics-365-word-template.png\" alt=\"Dynamics 365 word template\" width=\"454\" height=\"209\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/4Dynamics-365-word-template.png 454w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/4Dynamics-365-word-template-300x138.png 300w\" sizes=\"(max-width: 454px) 100vw, 454px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20456\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/5Dynamics-365-word-template.png\" alt=\"Dynamics 365 word template\" width=\"1137\" height=\"409\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/5Dynamics-365-word-template.png 1137w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/5Dynamics-365-word-template-300x108.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/5Dynamics-365-word-template-768x276.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/5Dynamics-365-word-template-1024x368.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/5Dynamics-365-word-template-660x237.png 660w\" sizes=\"(max-width: 1137px) 100vw, 1137px\" \/><\/p>\n<p>Step 7 &#8211; Upload the word template on CRM and export it from individual record or from home grid or from advanced find record list.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20457\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/6Dynamics-365-word-template.png\" alt=\"Dynamics 365 word template\" width=\"1048\" height=\"275\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/6Dynamics-365-word-template.png 1048w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/6Dynamics-365-word-template-300x79.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/6Dynamics-365-word-template-768x202.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/6Dynamics-365-word-template-1024x269.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/6Dynamics-365-word-template-660x173.png 660w\" sizes=\"(max-width: 1048px) 100vw, 1048px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20458\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/7Dynamics-365-word-template.png\" alt=\"Dynamics 365 word template\" width=\"1027\" height=\"312\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/7Dynamics-365-word-template.png 1027w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/7Dynamics-365-word-template-300x91.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/7Dynamics-365-word-template-768x233.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/7Dynamics-365-word-template-1024x311.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/7Dynamics-365-word-template-660x201.png 660w\" sizes=\"(max-width: 1027px) 100vw, 1027px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20459\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/8Dynamics-365-word-template.png\" alt=\"Dynamics 365 word template\" width=\"1089\" height=\"373\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/8Dynamics-365-word-template.png 1089w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/8Dynamics-365-word-template-300x103.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/8Dynamics-365-word-template-768x263.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/8Dynamics-365-word-template-1024x351.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/8Dynamics-365-word-template-660x226.png 660w\" sizes=\"(max-width: 1089px) 100vw, 1089px\" \/><\/p>\n<p>Step 8 &#8211; Result.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20460\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/9Dynamics-365-word-template.png\" alt=\"Dynamics 365 word template\" width=\"686\" height=\"231\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/9Dynamics-365-word-template.png 686w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/9Dynamics-365-word-template-300x101.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/09\/9Dynamics-365-word-template-660x222.png 660w\" sizes=\"(max-width: 686px) 100vw, 686px\" \/><\/p>\n<p>Please note: The format for date &amp; time will be same as in CRM.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p style=\"text-align: justify;\">In this way, we can create the custom field <strong>Today\u2019s date<\/strong> to store the current date and time. So whenever it is exported we will always get the current local date and time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Dynamics 365 CRM word template allows users to make their own standardized entity specific template to represent data according to their business standards. It is a requirement for businesses today to send quotation of their products or services to their customer. For this they mostly prefer to use Microsoft word template with their own\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2019\/09\/print-current-local-date-time-in-dynamics-365-crm-word-template\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":20462,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1937,1938,18,24,25],"tags":[1939,1936],"class_list":["post-20451","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-document-template","category-dynamics-365-crm-word-template","category-dynamics-365-v9-2","category-dynamics-crm-2016","category-dynamics-crm-2016-update-1","tag-document-template","tag-dynamics-365-crm-word-template"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/20451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=20451"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/20451\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/20462"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=20451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=20451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=20451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}