{"id":20151,"date":"2019-08-07T13:58:08","date_gmt":"2019-08-07T13:58:08","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=20151"},"modified":"2022-07-01T14:29:04","modified_gmt":"2022-07-01T08:59:04","slug":"customization-of-opportunity-close-dialog-box-in-dynamics-365","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2019\/08\/customization-of-opportunity-close-dialog-box-in-dynamics-365\/","title":{"rendered":"Customization of Opportunity Close dialog box in Dynamics 365"},"content":{"rendered":"<p><strong>Introduction:<\/strong><\/p>\n<p>Earlier to the Wave 2 release there was no option to customize the Opportunity Close dialog box. While closing an opportunity, organization would like to know why the opportunity is lost or won. If it is lost then business will try new strategies to improve win rates.<\/p>\n<p>In this Wave 2 release Microsoft has provided supporting customization of the Opportunity Close dialog box, which helps Sales organization to track the <strong>close\/win<\/strong> details based on their strategic sales initiatives.<\/p>\n<p>Let\u2019s take a scenario where business wants to add field on Opportunity Close dialog box like Outsource Vendors etc. To add fields, navigate to <strong>Settings&#8211;&gt;<\/strong><strong>Customization&#8211;&gt;<\/strong><strong>Customize the System<\/strong> and choose entity <strong>Opportunity Close <\/strong>and open the form as shown below and add Opportunity Vendor field.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20152\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-1.png\" alt=\"\" width=\"937\" height=\"299\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-1.png 937w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-1-300x96.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-1-768x245.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-1-660x211.png 660w\" sizes=\"(max-width: 937px) 100vw, 937px\" \/><\/p>\n<p>So let\u2019s see the Opportunity Close dialog box after adding the field.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20153\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-2.png\" alt=\"\" width=\"1239\" height=\"504\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-2.png 1239w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-2-300x122.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-2-768x312.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-2-1024x417.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-2-660x268.png 660w\" sizes=\"(max-width: 1239px) 100vw, 1239px\" \/><\/p>\n<p>To customize the Opportunity Close dialog box you need to enable the setting, then you will be able to customize the form of Opportunity Close entity by following the below steps:<\/p>\n<p>Navigate to <strong>Settings&#8211;&gt;<\/strong><strong>Administration<\/strong>, select <strong>System Settings.<\/strong><\/p>\n<p>In the\u00a0<strong>System Settings dialog<\/strong>\u00a0<strong>box<\/strong>, on the\u00a0<strong>Sales<\/strong>\u00a0tab, set the\u00a0<strong>Customize close opportunity form <\/strong>field to\u00a0<strong>Yes<\/strong> as shown below:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20154\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-3.png\" alt=\"\" width=\"1086\" height=\"589\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-3.png 1086w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-3-300x163.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-3-768x417.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-3-1024x555.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-3-660x358.png 660w\" sizes=\"(max-width: 1086px) 100vw, 1086px\" \/><\/p>\n<p>Now organization wants to show and hide the fields based on the <strong>Opportunity Close<\/strong> and <strong>Opportunity Won<\/strong>. The business required, if opportunity won then Outsource Vendor field will be shown and if Opportunity lost then Competitor field will be visible and the user will not be able to see the Outsource vendor field.<\/p>\n<p>Now we have tried to <strong>show and hide<\/strong> fields based on the condition using Business rules but Opportunity Vendor field is not present in the list. It may seem like it is a bug.<\/p>\n<p>Next, we used the JavaScript and it is working. We added JavaScript on load of Opportunity Close form.<\/p>\n<p>Here in JavaScript, we wrote a code where if user clicks on <strong>Close as won<\/strong> button then user will be able to see the Outsource Vendor field and won\u2019t be able to see the Competitor field.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20155\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-4.png\" alt=\"\" width=\"1236\" height=\"557\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-4.png 1236w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-4-300x135.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-4-768x346.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-4-1024x461.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-4-660x297.png 660w\" sizes=\"(max-width: 1236px) 100vw, 1236px\" \/><\/p>\n<p>If user clicks on <strong>Close as Lost<\/strong> then user can see the Competitor field but won\u2019t be able to see the Outsource Vendor field as shown below:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20156\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-5.png\" alt=\"\" width=\"1243\" height=\"547\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-5.png 1243w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-5-300x132.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-5-768x338.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-5-1024x451.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/blog-5-660x290.png 660w\" sizes=\"(max-width: 1243px) 100vw, 1243px\" \/><\/p>\n<p>By enabling customization to Opportunity Close dialog box, it now also allows you to add additional forms, however creating a new Quick Create form instead of customizing the existing one does not work. It will show up the new form when you click Close as Won or Lost but it will not pre-populate the opportunity details or the state\/status reason box. It is therefore important to customize the existing form. The same work is invoked for both Close as Won and Close as Lost scenarios.<\/p>\n<p>As you can see below the new form created for Opportunity Close dialog box does not populate the data of Status Reason:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20164\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/Blog-7.png\" alt=\"\" width=\"1426\" height=\"542\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/Blog-7.png 1426w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/Blog-7-300x114.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/Blog-7-768x292.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/Blog-7-1024x389.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/08\/Blog-7-660x251.png 660w\" sizes=\"(max-width: 1426px) 100vw, 1426px\" \/><\/p>\n<p><strong>Conclusion:<\/strong><\/p>\n<p>Editable Opportunity Close dialog box helps organizations to track whether the competitors are trending in losses, or what drove success in wins.<\/p>\n<h2 style=\"text-align: left;\"><div class=\"su-heading su-heading-style-default su-heading-align-center\" id=\"\" style=\"font-size:15px;margin-bottom:5px\"><div class=\"su-heading-inner\">Cut short 90% of your manual work and repetitive data entry!<\/div><\/div><\/h2>\n<p style=\"text-align: left;\"><em>Get 1 Click apps and say goodbye to all repetitive data entry in CRM &#8211;<\/em><br \/>\n<em><strong><a href=\"https:\/\/bit.ly\/3oH7dYw\" target=\"_blank\" rel=\"noopener noreferrer\">Click2Clone<\/a> <\/strong>\u2013 Clone\/Copy Dynamics 365 CRM records in 1 Click<\/em><br \/>\n<em><strong><a href=\"https:\/\/bit.ly\/3EPjAYc\" target=\"_blank\" rel=\"noopener noreferrer\">Click2Export<\/a><\/strong> \u2013 Export Dynamics 365 CRM Report\/CRM Views\/Word\/Excel template in 1 Click<\/em><br \/>\n<em><strong><a href=\"https:\/\/bit.ly\/3EN8h2v\" target=\"_blank\" rel=\"noopener noreferrer\">Click2Undo<\/a><\/strong> \u2013 Undo &amp; Restore Dynamics 365 CRM data in 1 Click<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Earlier to the Wave 2 release there was no option to customize the Opportunity Close dialog box. While closing an opportunity, organization would like to know why the opportunity is lost or won. If it is lost then business will try new strategies to improve win rates. In this Wave 2 release Microsoft has\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2019\/08\/customization-of-opportunity-close-dialog-box-in-dynamics-365\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":23697,"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":[13,18],"tags":[],"class_list":["post-20151","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-customizations","category-dynamics-365-v9-2"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/20151","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=20151"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/20151\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/23697"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=20151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=20151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=20151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}