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

3k Views Asked by At

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.

2

There are 2 best solutions below

11
On BEST ANSWER

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

4
On

Yes you can use the Ribbon workbench, backup the entity ribbon and customize the ribbon/command bar based on your need. It’s not encouraged to delete/remove any commands since you’re not using it.

There are other ways to hide them, removing privilege in security role, etc. instead of deleting them.

Normally users other than admins will not see all of them based on role privileges and customizations.