Search code examples
dynamics-crmpowerappspower-platformmodel-driven-app

Model-driven Power App - how to remove pre-existing classic commands


On the top of the views and forms of my model-driven Power App I have some commands (buttons) I don't need.

I would like to delete or hide e.g. the 'Delete' button when I 'Edit command bar' for a page (=table) in my app.

Classic command to remove

I see a message 'This button is read-only. Legacy button is not supported at the moment.'. The linked page states 'Pre-existing classic commands can't be customized within the command designer until they're migrated to the modern infrastructure. This includes the out-of-the-box commands, which will be migrated incrementally over time. You may continue to use other mechanisms and third-party tools for customizing classic commands.'

How to remove such a command? I will look at Ribbon Workbench if I am allowed to download it.


Solution

  • As Arun has already mentioned, you can use Ribbon workbench to hide legacy buttons, but before that approach, please try to utilize security roles to remove the access.

    i.e., removing Delete access to the entity will remove the delete button, same goes for most of the buttons.

    Reason being, there are many ways to delete even if the button is hidden, like simple http request from the console window or XRMtoolbox or bulk delete etc. same goes for other privilege based buttons