{"id":4286,"date":"2022-01-29T13:39:29","date_gmt":"2022-01-29T13:39:29","guid":{"rendered":"https:\/\/himbap.com\/blog\/?p=4286"},"modified":"2022-01-29T13:39:29","modified_gmt":"2022-01-29T13:39:29","slug":"fixing-button-issue-in-d365-ce-environment","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=4286","title":{"rendered":"Fixing Button issue in D365 CE Environment"},"content":{"rendered":"<p><strong>Issue<\/strong><br \/>\nCommand button is not visible in the Production system.<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/magnifying-4340698_640.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-4287 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/magnifying-4340698_640-300x200.jpg\" alt=\"magnifying-4340698_640\" width=\"300\" height=\"200\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/magnifying-4340698_640-300x200.jpg 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/magnifying-4340698_640-624x415.jpg 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/magnifying-4340698_640.jpg 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Resolution<\/strong><br \/>\nRecently we noticed that a new button added on the Meeting entity is not visible in the production environment.<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon2.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-4289 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon2-300x61.jpg\" alt=\"Ribbon2\" width=\"300\" height=\"61\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon2-300x61.jpg 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon2.jpg 530w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>This button have some enable rules so I thought it maybe related to that when I tried to debug command bar I was not able to see that butter there as well. But this button was visible in the other environment environment like below<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon1.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-4288 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon1-300x157.jpg\" alt=\"Ribbon1\" width=\"300\" height=\"157\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon1-300x157.jpg 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon1.jpg 510w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>While dong troubleshooting on this I found <a href=\"https:\/\/docs.microsoft.com\/en-us\/troubleshoot\/power-platform\/power-apps\/regenerate-ribbon-metadata\">this KB<\/a> article. Based on this article if we are facing following issues:<\/p>\n<p>&gt; A button on the command bar is hidden when it should be visible.<br \/>\n&gt; A button on the command bar is visible when it should be hidden.<br \/>\n&gt; A button on the command bar is not working correctly.<\/p>\n<p>This maybe because of the incorrect ribbon metadata. In order to solve this issue we have to regenerate metadata for the entity and we can regenerate metadata from the command checker<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon4.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-4291 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon4-300x29.jpg\" alt=\"Ribbon4\" width=\"300\" height=\"29\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon4-300x29.jpg 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon4-1024x99.jpg 1024w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon4-624x60.jpg 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon4.jpg 1032w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Once regeneration process is completed, we have to clear browser cache after that we should be able to see our button and it worked for us.<\/p>\n<p><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon3.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-4290 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon3-300x94.jpg\" alt=\"Ribbon3\" width=\"300\" height=\"94\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon3-300x94.jpg 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2022\/01\/Ribbon3.jpg 388w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Summary<\/strong><br \/>\nIf you facing issue issue like above you can regenerate metadata for fixing such issue. But before this make sure to check all the rule that you have for the button just to confirm if your button is not hidden due to that logic. you can debug command bar for that.<\/p>\n<p>Want to know how to debug command bar check our <a href=\"https:\/\/himbap.com\/blog\/?p=4188\">earlier post<\/a> for the same.<\/p>\n<p>Hope it will help someone !!<br \/>\n<strong>Keep learning and Keep Sharing !!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Issue Command button is not visible in the Production system. Resolution Recently we noticed that a new button added on the Meeting entity is not visible in the production environment. This button have some enable rules so I thought it maybe related to that when I tried to debug command bar I was not able to see that butter there&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=4286\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":4287,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[402,522],"tags":[963,964,962,965,961,960],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4286"}],"collection":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4286"}],"version-history":[{"count":2,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4286\/revisions"}],"predecessor-version":[{"id":4294,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4286\/revisions\/4294"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/4287"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}