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