To hide the entities ribbon buttons form the homepage grid and form levels , first we need to check the button form button id and grids butt id from ,
sdk/samplecode/cs/client/ribbon/exportribbonxml/bin/debug/exportedribbonxml/leadribbon
This code shows how to hide Lead entities forms ribbon button and grids ribbon button.
<RibbonDiffXml>
<CustomActions>
<HideCustomAction Location="Mscrm.HomepageGrid.lead.ConvertLead" // Button Id
HideActionId="Mscrm.HomepageGrid.lead.ConvertLead.HideAction" />
<HideCustomAction Location="Mscrm.Form.lead.ConvertLead" // Button Id
HideActionId="Mscrm.Form.lead.ConvertLead.HideAction" />
</CustomActions>
..............
</RibbonDiffXml>
sdk/samplecode/cs/client/ribbon/exportribbonxml/bin/debug/exportedribbonxml/leadribbon
This code shows how to hide Lead entities forms ribbon button and grids ribbon button.
<RibbonDiffXml>
<CustomActions>
<HideCustomAction Location="Mscrm.HomepageGrid.lead.ConvertLead" // Button Id
HideActionId="Mscrm.HomepageGrid.lead.ConvertLead.HideAction" />
<HideCustomAction Location="Mscrm.Form.lead.ConvertLead" // Button Id
HideActionId="Mscrm.Form.lead.ConvertLead.HideAction" />
</CustomActions>
..............
</RibbonDiffXml>
No comments:
Post a Comment