{"id":31644,"date":"2022-05-23T15:47:59","date_gmt":"2022-05-23T10:17:59","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=31644"},"modified":"2022-05-23T15:47:59","modified_gmt":"2022-05-23T10:17:59","slug":"command-checker-to-debug-ribbon-buttons","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2022\/05\/command-checker-to-debug-ribbon-buttons\/","title":{"rendered":"Command checker to debug ribbon buttons"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>Dynamics 365 CRM have added new features that are helpful for a developer to develop and deliver solutions to clients more quickly. The command checker is one of the features that is used to debug ribbon buttons. This is one of the best features because sometimes adding a button and getting it to work is more challenging work for the developer. When the ribbon button shows an error and does not show then it&#8217;s a time-consuming job for a developer to find the cause and resolve the issue. Now with the help of the command checker, the developer can debug the ribbon button customization and easily find the cause of the issue and find the resolution.<\/p>\n<p>To enable the command checker you need to append <strong>&amp;ribbondebug=true<\/strong> in the CRM URL. Copy the CRM URL from the browser and append the <strong>&amp;ribbondebug=true <\/strong>and paste the URL in the browser.<\/p>\n<p>The final CRM URL will look as shown below:<\/p>\n<p><a href=\"https:\/\/org90bc3d01.crm.dynamics.com\/main.aspx?appid=a123f692-19c7-ec11-a7b6-000d3a36cee0&amp;pagetype=entitylist&amp;etn=account&amp;ribbondebug=true\">https:\/\/org90bc3d01.crm.dynamics.com\/main.aspx?appid=a123f692-19c7-ec11-a7b6-000d3a36cee0&amp;pagetype=entitylist&amp;etn=account<strong>&amp;ribbondebug=true<\/strong><\/a><\/p>\n<p>Once you paste the above CRM URL in the browser and hit \u2018Enter\u2019 then the command Checker button will start appearing on the Global Ribbon and Entities home page grid and entities form Ribbons.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-31649\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/1ribbon-buttons.jpeg\" alt=\"ribbon buttons\" width=\"1320\" height=\"397\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/1ribbon-buttons.jpeg 1320w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/1ribbon-buttons-300x90.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/1ribbon-buttons-1024x308.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/1ribbon-buttons-768x231.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/1ribbon-buttons-660x199.jpeg 660w\" sizes=\"(max-width: 1320px) 100vw, 1320px\" \/><\/p>\n<h2><strong>Command checker button from entity home page grid ribbon: <\/strong><\/h2>\n<p>When clicking on the Command checker button from the account home page grid ribbon the following window will open. In that window, it shows all OOB and custom ribbon buttons along with each ribbon button&#8217;s properties, and command properties (action, enable rule, display rule). Looking at any ribbon button properties we are able to identify and troubleshoot why the button is hidden because of which Enable rule\/Display rule button is hidden. We can check the rule or if any custom rule with JavaScript then we can debug that function and easily able to find the cause of it and resolve it.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-31648\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/2ribbon-buttons.jpeg\" alt=\"ribbon buttons\" width=\"1305\" height=\"494\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/2ribbon-buttons.jpeg 1305w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/2ribbon-buttons-300x114.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/2ribbon-buttons-1024x388.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/2ribbon-buttons-768x291.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/2ribbon-buttons-660x250.jpeg 660w\" sizes=\"(max-width: 1305px) 100vw, 1305px\" \/><\/p>\n<p>Also, we can get every ribbon button&#8217;s information so that anyone can get an idea about the ribbon button. In this way, anyone new to this ribbon button can easily get functionality, and if any issue arises then they can easily troubleshoot and resolve the issue.<\/p>\n<p>There is a \u2018Regenerate ribbon metadata\u2019 button at the top so that it displays the latest ribbons.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-31647\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/3ribbon-buttons.jpeg\" alt=\"ribbon buttons\" width=\"897\" height=\"255\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/3ribbon-buttons.jpeg 897w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/3ribbon-buttons-300x85.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/3ribbon-buttons-768x218.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/3ribbon-buttons-660x188.jpeg 660w\" sizes=\"(max-width: 897px) 100vw, 897px\" \/><\/p>\n<p>When clicking on the button, it shows the below message and regenerates the metadata in the background.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-31646\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/4ribbon-buttons.jpeg\" alt=\"ribbon buttons\" width=\"533\" height=\"253\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/4ribbon-buttons.jpeg 533w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/4ribbon-buttons-300x142.jpeg 300w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/p>\n<p>Global command checker:<\/p>\n<p>When clicking on the Command checker button, it displays the following window with all OOB ribbon buttons and any custom button that is added to the Global ribbon.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-31645\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/5ribbon-buttons.jpeg\" alt=\"ribbon buttons\" width=\"974\" height=\"521\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/5ribbon-buttons.jpeg 974w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/5ribbon-buttons-300x160.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/5ribbon-buttons-768x411.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/5ribbon-buttons-660x353.jpeg 660w\" sizes=\"(max-width: 974px) 100vw, 974px\" \/><\/p>\n<p>As we can see in the above screenshot, Team Chat button is hidden and we are able to see them due to which the display rule button is hidden.<\/p>\n<h2><strong>Conclusion:<\/strong><\/h2>\n<p>In this way, with the help of the command checker, the developer is able to easily troubleshoot and resolve ribbon button issues.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/kanban-board-dynamics-365-crm\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone wp-image-31650\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/kb.jpg\" alt=\"Kanban Board\" width=\"836\" height=\"209\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/kb.jpg 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/kb-300x75.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/kb-768x192.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/05\/kb-660x165.jpg 660w\" sizes=\"(max-width: 836px) 100vw, 836px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Dynamics 365 CRM have added new features that are helpful for a developer to develop and deliver solutions to clients more quickly. The command checker is one of the features that is used to debug ribbon buttons. This is one of the best features because sometimes adding a button and getting it to work\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2022\/05\/command-checker-to-debug-ribbon-buttons\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"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":[16,2361],"tags":[1479],"class_list":["post-31644","post","type-post","status-publish","format-standard","hentry","category-dynamics-365","category-technical","tag-ribbon-button"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/31644","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=31644"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/31644\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=31644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=31644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=31644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}