Command scope
When a new command is added using the command bar designer, it’s scoped to a specific command bar location, in a specific app, for a specific table. You can broaden a command’s scope by manually editing the command definition. You can configure commands with the following scope:
- App – The default configuration. The command is scoped to a specific command bar location, app, and table.
- Table – A broader scope. The command is visible in any app that uses the same table and command bar (for example, main form).
- Global – The broadest scope. The command is visible in the same command bar location (for example, main form) across all tables and apps in the environment.
A broader command scope increases reusability. It also improves usability by ensuring users have consistent access to the same command. Currently, commands that use Power Fx for the Visibility or OnSelect properties can only use App scope.
The command bar designer doesn't support configuring commands for Table or Global scope. To configure Table or Global scope, you must manually edit the command definition file. The following video demonstrates how to change a command’s scope.