{"id":4188,"date":"2021-12-29T11:36:59","date_gmt":"2021-12-29T11:36:59","guid":{"rendered":"https:\/\/himbap.com\/blog\/?p=4188"},"modified":"2022-01-29T13:32:05","modified_gmt":"2022-01-29T13:32:05","slug":"hiding-special-buttons-from-dynamics-365-ce","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=4188","title":{"rendered":"Hiding Special buttons from Dynamics 365 CE"},"content":{"rendered":"<p><strong>Requirement<\/strong><br \/>\nHide Create Invoice button on the Dynamics 365 Sales Professional app.<\/p>\n<p><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/08\/invoice1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-4239 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/08\/invoice1-300x118.png\" alt=\"invoice1\" width=\"300\" height=\"118\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/08\/invoice1-300x118.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/08\/invoice1.png 311w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Details<\/strong>:<br \/>\nWhile working on Dynamics 365 CE implementation it&#8217;s normal to get request to hide some command buttons. Today I am going to demonstrate how to hide special buttons like Create Invoice button in Dynamics 365 CE Sales Professional app.<\/p>\n<p>Normally when we want to hide ribbon button we use Ribbon Workbench tool but in this case, this button is not visible under ribbon workbench editor. Another option that we have is to hide this button manually but we need <strong>id<\/strong> of this button to hide it.<\/p>\n<p>Don&#8217;t worry we have another feature, Do you know we have option to debug command bar now using <strong>ribbondebug=true<\/strong> and that&#8217;s going to help us to get button id. Open quote record and append &amp;ribbondebug=true in the address bar which will enable command checker like below.<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice4.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-4241 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice4-300x249.png\" alt=\"invoice4\" width=\"300\" height=\"249\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice4-300x249.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice4.png 497w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>And we can check our button id from there<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-4240 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice3-300x200.png\" alt=\"invoice3\" width=\"300\" height=\"200\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice3-300x200.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice3-1024x683.png 1024w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice3-624x416.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice3.png 1185w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Ok so now we have id of the button, so let&#8217;s hide button:<\/p>\n<p>1. Create a solution and add quote entity in it, we don&#8217;t need any Asset so untick &#8220;<strong>Add All Assets<\/strong>&#8221; option.<br \/>\n2. Export solution and unzip it.<br \/>\n3. Open customizations.xml file in any xml editor<br \/>\n4. Add following line<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice6.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-4242 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice6-300x40.png\" alt=\"invoice6\" width=\"300\" height=\"40\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice6-300x40.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice6-1024x136.png 1024w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice6-624x83.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice6.png 1472w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nHere you can use any id for the HideActionId and need to use same button id for the Location.<br \/>\n5. Zip all the files from your solution folder with the same name.<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice7.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-4243 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice7-300x240.png\" alt=\"invoice7\" width=\"300\" height=\"240\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice7-300x240.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice7.png 363w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n6. Import solution and publish your changes<\/p>\n<p>After that you should not be able to see create invoice button anymore<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice5.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-4244 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice5-300x62.png\" alt=\"invoice5\" width=\"300\" height=\"62\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice5-300x62.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice5-1024x212.png 1024w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice5-624x129.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/12\/invoice5.png 1052w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Hope it will help someone !!<br \/>\n<strong>Keep learning and Keep Sharing !! <\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Requirement Hide Create Invoice button on the Dynamics 365 Sales Professional app. Details: While working on Dynamics 365 CE implementation it&#8217;s normal to get request to hide some command buttons. Today I am going to demonstrate how to hide special buttons like Create Invoice button in Dynamics 365 CE Sales Professional app. Normally when we want to hide ribbon button&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=4188\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":4239,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[957,958,959,938,939,935,937,936],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4188"}],"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=4188"}],"version-history":[{"count":5,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4188\/revisions"}],"predecessor-version":[{"id":4292,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4188\/revisions\/4292"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/4239"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}