Michael Philip's Blog

Writing about MS Tech with strong focus on Azure & CRM

How To : Permanently Hide Ribbon button In Microsoft Dynamics CRM 2011

1 Comment

Introduction: Every ribbon button  in an entity is found at 3 locations :

  • Form
  • Homepage Grid
  • Sub Grid

Note:  you can check how to hide any ribbon button if it is on a form only , using java script at the following  link


To hide the ribbon button in any mode (Form,Homepage Grid,Sub Grid),  you need to apply the following steps &lets say you that to hide the “assign” button in the homepage grid of the “contact” entity as the following screenshot shows.


  1. Go to the following directory “SDK\sdk\samplecode\cs\client\ribbon\exportribbonxml\exportedribbonxml”.
  2. open the following file “contactribbon.xml” and copy the ID of the button.assignbuttonribbon
  3.  Create a new Solution called ContactEntityOnly
  4.  Add the Contact entity to the Solution
  5.  Export the Solution and unzip it
  6.  Open the exported “Customisation.xml” file in Visual Studio (or NotePad if you don’t have VS)
  7.  Do a FIND on <RibbonDiffXml>
  8.  Replace  <CustomActions /> with the below:

    <CustomActions >
    <HideCustomAction Location=”Mscrm.HomepageGrid.contact.Assign
    HideActionId=”Mscrm.HomepageGrid.contact.Assign.HideAction” />

    -Note that the “location” attribute id the button we have got earlier.

  9.  Save & Zip again.
  10. Import the solution, publish & refresh.

One thought on “How To : Permanently Hide Ribbon button In Microsoft Dynamics CRM 2011

  1. The XML file containing the Button Id is now located in: \sdk\resources\exportedribbonxml\

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s