Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Unlike classic commands, modern commands are treated the same as other solution objects and support core solution behaviors. You can also edit existing modern commands from within a solution.
To add commands to a solution, you add the solution objects that depend on your command actions:
- Modern commands are a table component. When you add a command to a solution, you must add the command component. In this screenshot there's one JavaScript and one Power Fx command for the custom Classroom table that can be added as a specific object to a solution for export.
- Power Fx commands use a Dataverse component library. Add the component library to your solution if you plan to export it.
- JavaScript commands use a web resource. Add the web resource that includes the underlying JavaScript to run your command to the solution if you plan to export it.
More information: Add an existing component to a solution
Modern commanding provides these benefits when you work with solutions:
- Block commands from being customized by using managed properties. Open the table, select Commands, select the command, and then on the command bar select Advanced > Managed properties to disable Allow customizations.
- View dependencies related to your modern command components. More information: View dependencies for a component in Power Apps
- Troubleshoot by viewing which solutions modified the component and when using solution layers. More information: Solution layers
- Remove any unmanaged customizations if in an unhealthy state. More information: Remove an unmanaged layer
- Segment solutions and build minor updates or patches that include your modern command components.
- Modern command components work with solution upgrade so you can delete components by importing a new version. Upgrade or update a solution
- Standardized localization via export/import translations. More information: Translate label text