Hide a ribbon control
ribbon_hide_controlRemove a ribbon control by applying HideCustomAction to the local working copy, using the control ID from the ribbon structure.
Instructions
Remove an existing (usually out-of-the-box) control from the ribbon via HideCustomAction in the local working copy. The control id comes from ribbon_get_structure. Note: per Microsoft docs, for commands you own, an always-false display rule is often preferable; HideCustomAction removes the node others may target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | Entity logical name (e.g. 'account'), or 'APPLICATION' for the application ribbon. Note: APPLICATION support is EXPERIMENTAL (implemented per documented schema but not yet covered by the live end-to-end test suite) — take extra care and keep the backup ids at hand. | |
| controlId | Yes | Id of the control to hide, e.g. 'Mscrm.HomepageGrid.account.Delete' | |
| environment | No | Dataverse environment URL, e.g. https://myorg.crm4.dynamics.com. Optional when the RIBBON_MCP_ENV_URL environment variable is set. |