Wednesday, June 6, 2012

Hide Add Existing or hide Add New Ribbon Buttons

Today I had to search once more for how to hide the Add Existing or Add New Ribbon Buttons. I found the article "Ribbon Customization Part-10-Hide ‘Add Existing’ button in Dynamics CRM 2011" which helped me in this case.

Here I want to just add the lines to hide the Add Existing or Add New Buttons for custom entities. In the RibbonDiffXml you can simply add:

Hide Add Existing Button:

 <CustomActions>
  <HideCustomAction Location="Mscrm.SubGrid.[yourentityname].AddExistingAssoc" HideActionId="sample.Mscrm.SubGrid.[yourentityname].AddExistingAssoc.HideAction" />
  <HideCustomAction Location="Mscrm.SubGrid.[yourentityname].AddExistingStandard" HideActionId="sample.Mscrm.SubGrid.[yourentityname].AddExistingStandard.HideAction" />
</CustomActions>


Hide Add New Button: 

<CustomActions> 
   <HideCustomAction Location="Mscrm.SubGrid.[yourentityname].AddNewStandard" HideActionId="sample.Mscrm.SubGrid.contact.[yourentityname].HideAction" />
</CustomActions>



No comments:

Post a Comment