Prevent Duplicate Icons in the Focused View of the Side Pane in Dynamics 365 CRM


Recently, while working on adding a sidepane dynamically to a custom model-driven app, the author encountered an issue where a double icon was displayed when clicking on the "Focused View" button, cluttering the UI. The problem was caused by the code being triggered multiple times when switching between different views. To solve this, the author added a condition in the code to check the URL and current page type, preventing the icon from being loaded again when the "Focused View" button was clicked. By implementing this fix, the issue of double icons was resolved, resulting in a cleaner UI and smoother user experience.


Article 1m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time