{"id":39879,"date":"2024-12-03T16:37:09","date_gmt":"2024-12-03T11:07:09","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=39879"},"modified":"2024-12-03T17:15:41","modified_gmt":"2024-12-03T11:45:41","slug":"prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/","title":{"rendered":"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignnone size-full wp-image-39880\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Side-Pane-in-Dynamics-365-CRM.png\" alt=\"Side Pane in Dynamics 365 CRM\" width=\"1925\" height=\"1100\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Side-Pane-in-Dynamics-365-CRM.png 1925w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Side-Pane-in-Dynamics-365-CRM-300x171.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Side-Pane-in-Dynamics-365-CRM-1024x585.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Side-Pane-in-Dynamics-365-CRM-768x439.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Side-Pane-in-Dynamics-365-CRM-1536x878.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Side-Pane-in-Dynamics-365-CRM-660x377.png 660w\" sizes=\"(max-width: 1925px) 100vw, 1925px\" \/><\/p>\n<p>Recently while working on adding a sidepane dynamically using code on my custom model-driven app, I encountered an issue that led to a double icon display when I clicked on the \u201c<strong>Focussed View<\/strong>\u201d button, which caused the UI to become cluttered and messy. In this blog, I\u2019ll walk you through the issue I faced, the solution I discovered, and the outcome of this approach. To know more about how to add or create a sidepane you can follow <a href=\"https:\/\/learn.microsoft.com\/en-us\/power-apps\/developer\/model-driven-apps\/clientapi\/create-app-side-panes\">this link<\/a>.<\/p>\n<p>I was working on customizing the sidepane in my model-driven app, where the icon appears based on certain conditions when the page loads. But I noticed an unexpected behaviour while testing the functionality.<\/p>\n<p>Every time I clicked on the <strong>focussed view<\/strong> button (which switches the view of records in D365), the sidepane was displaying the same icon again as per the below screenshot.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-39881\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/Side-Pane-in-Dynamics-365-CRM-1.png\" alt=\"Side Pane in Dynamics 365 CRM\" width=\"1918\" height=\"892\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/Side-Pane-in-Dynamics-365-CRM-1.png 1918w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/Side-Pane-in-Dynamics-365-CRM-1-300x140.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/Side-Pane-in-Dynamics-365-CRM-1-1024x476.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/Side-Pane-in-Dynamics-365-CRM-1-768x357.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/Side-Pane-in-Dynamics-365-CRM-1-1536x714.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/Side-Pane-in-Dynamics-365-CRM-1-660x307.png 660w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p>Essentially, it was creating a duplicate icon on the screen, causing the UI to look cluttered. The issue was that the code I was using to load the sidepane icon was being triggered multiple times, resulting in the duplicate icons that were overlapping and messing up the layout.<\/p>\n<p>After spending some time troubleshooting, I realized that the double icon issue happened because my code was being executed when switching between different views, such as when users clicked on the <strong>focussed view<\/strong> button. This was causing the same icon to be injected into the UI multiple times, leading to the duplicate icon problem.<\/p>\n<p>I looked into various potential solutions to prevent this from happening. I needed a reliable way to restrict the code from loading the icon again when the user was switching views.<\/p>\n<p>After some trial and error, I found a clean and simple solution. By adding a condition in my code to check the <strong>URL<\/strong> and the current page type, I could effectively restrict the sidepane icon from being loaded again when the <strong>focussed view<\/strong> button was clicked.<\/p>\n<p><strong>Here\u2019s the code snippet I used:<\/strong><\/p>\n<pre class=\"lang:css gutter:true start:1\">if (parent.parent.location.search.indexOf('entitylist') &gt; 1 &amp;&amp; Xrm.Utility.getPageContext().input.pageType == 'entityrecord') {\r\nreturn;\r\n\r\n}<\/pre>\n<ul>\n<li>The condition checks the <strong>URL<\/strong> query parameters using \u201c<strong>parent.parent.location.search\u201d<\/strong>. If the search string contains <strong>\u201centitylist,\u201d<\/strong> it means we are on a list page, not a record page.<\/li>\n<li>The condition also checks the \u201c<strong>page type\u201d<\/strong> using <strong>Xrm.Utility.getPageContext().input.pageType<\/strong>. If the page type is <strong>\u201centityrecord,\u201d<\/strong> it confirms that we are on a record view (not the list view).<\/li>\n<li>If both of these conditions are true, the code will <strong>exit early<\/strong> and prevent the icon from being loaded again.<\/li>\n<\/ul>\n<p>By applying this logic, the sidepane icon only loads once when the page first loads, and subsequent interactions with the focussed view button won\u2019t trigger the code to add another icon, thus preventing the UI from getting messed up.<\/p>\n<p>After implementing this fix, the issue of double icons was resolved. Now, when switching between different views or focusing on a record, the sidepane icon remains intact without any duplication. The UI looks clean, and the user experience is much smoother.<\/p>\n<p><strong>Conclusion:<\/strong><\/p>\n<p>When creating or adding a custom sidepane in your custom model-driven app in Dynamics 365, you may encounter the issue of double icons appearing when clicking the <strong>Focussed View<\/strong> button. By using the condition mentioned above, you can resolve this issue and prevent the duplicate icon from being added when the <strong>Focussed View<\/strong> is clicked. This solution ensures a cleaner UI and a smoother user experience in your application.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/dedupe-find-clean-merge-duplicate-dynamics-365-crm-data\/\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone  wp-image-35682\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/DeDupeD.gif\" alt=\"DeDupeD\" width=\"746\" height=\"213\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently while working on adding a sidepane dynamically using code on my custom model-driven app, I encountered an issue that led to a double icon display when I clicked on the \u201cFocussed View\u201d button, which caused the UI to become cluttered and messy. In this blog, I\u2019ll walk you through the issue I faced, the\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/\">Read More: Prevent Duplicate Icons in the Focused View of the Side\u2026 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[3078],"class_list":["post-39879","post","type-post","status-publish","format-standard","hentry","category-dynamics-365","tag-side-pane-in-dynamics-365-crm"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Recently while working on adding a sidepane dynamically using code on my custom model-driven app, I encountered an issue that led to a double icon display when I clicked on the \u201cFocussed View\u201d button, which caused the UI to become cluttered and messy. In this blog, I\u2019ll walk you through the issue I faced, the\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Sam Kumar\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"Recently while working on adding a sidepane dynamically using code on my custom model-driven app, I encountered an issue that led to a double icon display when I clicked on the \u201cFocussed View\u201d button, which caused the UI to become cluttered and messy. In this blog, I\u2019ll walk you through the issue I faced, the\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Side-Pane-in-Dynamics-365-CRM.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Side-Pane-in-Dynamics-365-CRM.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1925\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1100\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-12-03T11:07:09+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-12-03T11:45:41+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inogicindia\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Recently while working on adding a sidepane dynamically using code on my custom model-driven app, I encountered an issue that led to a double icon display when I clicked on the \u201cFocussed View\u201d button, which caused the UI to become cluttered and messy. In this blog, I\u2019ll walk you through the issue I faced, the\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Side-Pane-in-Dynamics-365-CRM.png\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Sam Kumar\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2024\\\/12\\\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\\\/#blogposting\",\"name\":\"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sam-kumar\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/1Side-Pane-in-Dynamics-365-CRM.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2024\\\/12\\\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\\\/#articleImage\",\"width\":1925,\"height\":1100,\"caption\":\"Side Pane in Dynamics 365 CRM\"},\"datePublished\":\"2024-12-03T16:37:09+05:30\",\"dateModified\":\"2024-12-03T17:15:41+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2024\\\/12\\\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2024\\\/12\\\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\\\/#webpage\"},\"articleSection\":\"Dynamics 365, Side Pane in Dynamics 365 CRM\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2024\\\/12\\\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"name\":\"Dynamics 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"position\":2,\"name\":\"Dynamics 365\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2024\\\/12\\\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\\\/#listItem\",\"name\":\"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2024\\\/12\\\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\\\/#listItem\",\"position\":3,\"name\":\"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"name\":\"Dynamics 365\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"By Inogic\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2024\\\/12\\\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2024\\\/12\\\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inogicindia\",\"https:\\\/\\\/twitter.com\\\/inogic\",\"https:\\\/\\\/www.instagram.com\\\/inogicindia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCM4V7ousgLSu1hbOEv4DUuQ\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/inogicindia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sam-kumar\\\/#author\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sam-kumar\\\/\",\"name\":\"Sam Kumar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2024\\\/12\\\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ede4386d06665d3d5ee2ecccb6c36df60385d561e317372bd89dffb7e4b1de2f?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Sam Kumar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2024\\\/12\\\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2024\\\/12\\\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\\\/\",\"name\":\"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Recently while working on adding a sidepane dynamically using code on my custom model-driven app, I encountered an issue that led to a double icon display when I clicked on the \\u201cFocussed View\\u201d button, which caused the UI to become cluttered and messy. In this blog, I\\u2019ll walk you through the issue I faced, the\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2024\\\/12\\\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sam-kumar\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sam-kumar\\\/#author\"},\"datePublished\":\"2024-12-03T16:37:09+05:30\",\"dateModified\":\"2024-12-03T17:15:41+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"alternateName\":\"Inogic\",\"description\":\"By Inogic\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Recently while working on adding a sidepane dynamically using code on my custom model-driven app, I encountered an issue that led to a double icon display when I clicked on the \u201cFocussed View\u201d button, which caused the UI to become cluttered and messy. In this blog, I\u2019ll walk you through the issue I faced, the","canonical_url":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/#blogposting","name":"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/sam-kumar\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Side-Pane-in-Dynamics-365-CRM.png","@id":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/#articleImage","width":1925,"height":1100,"caption":"Side Pane in Dynamics 365 CRM"},"datePublished":"2024-12-03T16:37:09+05:30","dateModified":"2024-12-03T17:15:41+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/#webpage"},"articleSection":"Dynamics 365, Side Pane in Dynamics 365 CRM"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.inogic.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","name":"Dynamics 365"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","position":2,"name":"Dynamics 365","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/#listItem","name":"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/#listItem","position":3,"name":"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","name":"Dynamics 365"}}]},{"@type":"Organization","@id":"https:\/\/www.inogic.com\/blog\/#organization","name":"Microsoft Dynamics 365 CRM Tips and Tricks","description":"By Inogic","url":"https:\/\/www.inogic.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/inogicindia","https:\/\/twitter.com\/inogic","https:\/\/www.instagram.com\/inogicindia\/","https:\/\/www.youtube.com\/channel\/UCM4V7ousgLSu1hbOEv4DUuQ","https:\/\/www.linkedin.com\/company\/inogicindia"]},{"@type":"Person","@id":"https:\/\/www.inogic.com\/blog\/author\/sam-kumar\/#author","url":"https:\/\/www.inogic.com\/blog\/author\/sam-kumar\/","name":"Sam Kumar","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/ede4386d06665d3d5ee2ecccb6c36df60385d561e317372bd89dffb7e4b1de2f?s=96&d=mm&r=g","width":96,"height":96,"caption":"Sam Kumar"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/","name":"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Recently while working on adding a sidepane dynamically using code on my custom model-driven app, I encountered an issue that led to a double icon display when I clicked on the \u201cFocussed View\u201d button, which caused the UI to become cluttered and messy. In this blog, I\u2019ll walk you through the issue I faced, the","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/sam-kumar\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/sam-kumar\/#author"},"datePublished":"2024-12-03T16:37:09+05:30","dateModified":"2024-12-03T17:15:41+05:30"},{"@type":"WebSite","@id":"https:\/\/www.inogic.com\/blog\/#website","url":"https:\/\/www.inogic.com\/blog\/","name":"Microsoft Dynamics 365 CRM Tips and Tricks","alternateName":"Inogic","description":"By Inogic","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic","og:type":"article","og:title":"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Recently while working on adding a sidepane dynamically using code on my custom model-driven app, I encountered an issue that led to a double icon display when I clicked on the \u201cFocussed View\u201d button, which caused the UI to become cluttered and messy. In this blog, I\u2019ll walk you through the issue I faced, the","og:url":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Side-Pane-in-Dynamics-365-CRM.png","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Side-Pane-in-Dynamics-365-CRM.png","og:image:width":1925,"og:image:height":1100,"article:published_time":"2024-12-03T11:07:09+00:00","article:modified_time":"2024-12-03T11:45:41+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Recently while working on adding a sidepane dynamically using code on my custom model-driven app, I encountered an issue that led to a double icon display when I clicked on the \u201cFocussed View\u201d button, which caused the UI to become cluttered and messy. In this blog, I\u2019ll walk you through the issue I faced, the","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Side-Pane-in-Dynamics-365-CRM.png","twitter:label1":"Written by","twitter:data1":"Sam Kumar","twitter:label2":"Est. reading time","twitter:data2":"3 minutes"},"aioseo_meta_data":{"post_id":"39879","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-12-03 11:03:05","updated":"2025-07-04 11:54:33","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/\" title=\"Dynamics 365\">Dynamics 365<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPrevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Dynamics 365","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/"},{"label":"Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM","link":"https:\/\/www.inogic.com\/blog\/2024\/12\/prevent-duplicate-icons-in-the-focused-view-of-the-side-pane-in-dynamics-365-crm\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/39879","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\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=39879"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/39879\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=39879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=39879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=39879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}