{"id":1054,"date":"2013-05-26T17:03:01","date_gmt":"2013-05-26T17:03:01","guid":{"rendered":"http:\/\/mahenderpal.wordpress.com\/?p=1054"},"modified":"2013-05-26T17:03:01","modified_gmt":"2013-05-26T17:03:01","slug":"step-by-step-hiding-ribbon-button-in-ms-crm-2011-part1","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=1054","title":{"rendered":"Step By Step Hiding Ribbon Button in MS CRM 2011 Part1"},"content":{"rendered":"<p>If you have a requirement to hide ribbon buttons in MS CRM 2011 then this post is will help you. Sometime there some system ribbon button which is not required by our client, so if we need to hide them we have two below options:<\/p>\n<ul>\n<li>Modify Ribbon XML file manually.<\/li>\n<li>User Ribbon Editors addon available.<\/li>\n<\/ul>\n<p>Let\u2019s say we need to hide \u201cSave&amp;New\u201d button from Lead entity.<\/p>\n<p>In this post we are going to modify ribbon xml manually and next post I will be using ribbon editor addon available. So let\u2019s start our step by step process.<\/p>\n<p>Step1: Generate Ribbon XML for you entities.<\/p>\n<p>You can use exportribbonxml project that comes with MS CRM 2011 SDK under <strong>\u201csdksamplecodecsclientribbonexportribbonxml\u201d<\/strong> location. Open this project and run it will ask your crm server name and organization detail and will generate entity ribbons.<\/p>\n<p>Step2: Open leadRibbon.xml in Visual Studio or you any xml editor<\/p>\n<p>Step3: Create new solution and add your entity in that.<\/p>\n<p>Step4: Export your solution and extract it.<\/p>\n<p>Step5: Open your customizations.xml file in Visual Studio and search for \u201cSaveAndNew\u201d<\/p>\n<p><a href=\"http:\/\/mahenderpal.files.wordpress.com\/2013\/05\/capture1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-1055 aligncenter\" alt=\"Capture\" src=\"http:\/\/mahenderpal.files.wordpress.com\/2013\/05\/capture1.png\" width=\"326\" height=\"25\" \/><\/a><\/p>\n<p>Step6: Copy it\u2019s id value, we need this to use it in our location property.<\/p>\n<p>Step7: Open customization.xml from your extracted solution.<\/p>\n<p>Step8: Search for RibbonDiffXml and do changes like below<\/p>\n<p><a href=\"http:\/\/mahenderpal.files.wordpress.com\/2013\/05\/riboonxml.png\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-1057 aligncenter\" alt=\"riboonxml\" src=\"http:\/\/mahenderpal.files.wordpress.com\/2013\/05\/riboonxml.png\" width=\"535\" height=\"153\" \/><\/a><\/p>\n<p>We have used <a href=\"http:\/\/msdn.microsoft.com\/en-in\/library\/gg309469.aspx\">HideCustomAction <\/a>to hide our OOB button.<\/p>\n<p>Step9: Zip your solution (selection all field-&gt;right Click-&gt;Send To-&gt;Compressed (Ziped) folder.<\/p>\n<p>Step10: Import your solution and Publish Customization.<\/p>\n<p>Now when you will open lead form you will find \u201cSave &amp; New\u201d button missing like below<\/p>\n<p><a href=\"http:\/\/mahenderpal.files.wordpress.com\/2013\/05\/missingsaveand-new.png\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-1056 aligncenter\" alt=\"missingsaveand new\" src=\"http:\/\/mahenderpal.files.wordpress.com\/2013\/05\/missingsaveand-new.png\" width=\"159\" height=\"98\" \/><\/a><\/p>\n<p>In Next post we will show how we can implement this using ribbon Editor addon !!<\/p>\n<p><b><a href=\"http:\/\/himbap.com\/\" target=\"_blank\">Himbap<\/a> | Need any help in customization <a href=\"http:\/\/www.himbap.com\/contactus.aspx\">Contact US\u00a0<\/a><\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have a requirement to hide ribbon buttons in MS CRM 2011 then this post is will help you. Sometime there some system ribbon button which is not required by our client, so if we need to hide them we have two below options: Modify Ribbon XML file manually. User Ribbon Editors addon available. Let\u2019s say we need to&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=1054\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[83,85],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1054"}],"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=1054"}],"version-history":[{"count":0,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1054\/revisions"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}