Ribbon Customization Part-8-Hiding a Group of Ribbon Buttons in Dynamics CRM 2011

In my earlier post we have seen how to hide a ribbon button , In this post we will see how to hide the  group of buttons in the Ribbon

Now we will try to hide the “Actions”group in the Opportunity entity ribbon. see the below screenshot  which displays the Ribbon on the opportunity entity


We are going to hide the entire “Actions” group

Steps to Follow

  1. We need to find the Id of the Ribbon component i.t “Actions”Group
  2. We need to open the “opportunityribbon.xml” which will be available at   “sdk\samplecode\cs\client\ribbon\exportribbonxml” 
  3. Open the “Opportuniyribbon.xml” find the “Actions”Group id as shown in the below screenshot
  4. finding the GroupId in Opprotunityribbonxml
  5. Now we need to create a new Solution
  6. Add the Opportunity Entity
  7. Save  and export the Solution
  8. Unzip the Solution
  9. Edit the “Customizations.xml”
  10. Go to the <<RibbonDiffXML>>
  11. Add the below  <<HideAction>> under the<<CustomActions>>under the <<RibbonDiffXML>>
  12.    1: <!-- to hide the Actions Group on the HomepageGrid Ribbon -->

       2:          <HideCustomAction Location="Mscrm.HomepageGrid.opportunity.MainTab.Actions" 

       3:                            HideActionId="Mscrm.HomepageGrid.opportunity.MainTab.Actions.HideAction" />

       4:          <!-- to hide the Actions Group on the Entity Form Ribbon -->


       6:          <HideCustomAction Location="Mscrm.Form.opportunity.MainTab.Actions" 

       7:                            HideActionId="Mscrm.Form.opportunity.MainTab.Actions.HideAction" />

  13. Save  the File
  14. ReZip
  15. Import and Publish the Solution
  16. Refresh the Browser and you can see the Opportunity Entity ribbon looks like the below screenshot
  17. Hiding a Group of buttons in CRM2011 Ribbon
  18. That’s it for now.. Happy learning Smile
  19. Download the Complete Solution from here