Muistiinpano
Tämän sivun käyttö edellyttää valtuutusta. Voit yrittää kirjautua sisään tai vaihtaa hakemistoa.
Tämän sivun käyttö edellyttää valtuutusta. Voit yrittää vaihtaa hakemistoa.
Note
This topic is about classic commands.
There is a new way to define commands. See Modern commanding overview (preview).
This article explains how to edit the ribbon in model-driven apps by exporting a solution, preparing and modifying its XML, and then importing and publishing the customizations. Follow this process to apply ribbon changes successfully:
- Export the ribbon
- Prepare to edit the XML
- Edit the
<RibbonDiffXml> - Import the ribbon
Export the ribbon
You export the ribbon by including it in a solution and then exporting the solution. You can export all the customizations, but that option can represent a large amount of data. Use an existing unmanaged solution or create a new solution.
Create a new solution or edit an existing solution
Follow the instructions in Create a solution, or sign in to Power Apps and select Solutions from the left navigation. Select the unmanaged solution you want to edit.
If you want to edit the ribbon for specific tables, add those tables to the solution. For the purpose of editing table ribbons, you don't need to include required components. If you intend to export this solution and apply it to another system, include required components.
If you want to edit global ribbons or add a custom group to all tables, select Add Existing and then select Application Ribbons.
Export the ribbon
- Follow the instructions in Export a solution to download an unmanaged solution.
- Right-click the compressed .zip file that you downloaded and select Extract All... .
- Select a location to extract the files and then select Extract.
- Edit the
customizations.xmlfile.
Prepare to edit the XML
For a better experience, edit the customizations.xml file with an application that uses schema validation to provide IntelliSense support. For more information, see Edit the customizations file with schema validation.
Import the ribbon
After you edit the
customization.xmlfile, select the folder that contains the file.Select all of the files or folders that were included when you extracted the solution. Right-click the selected files, select Compress to..., and then select ZIP File.
Note
This step creates a compressed .zip file in the same folder. The name of the file might vary, but it's the same as one of the other files in the folder - except it has a .zip file name extension.
Follow the instructions in Import a solution.
After you successfully import your solution, you must publish customizations before you can see the changes. In the solutions list menu, select Publish all customizations.
Resolve ribbon import errors
If you receive a notification that errors caused the import to fail, select Export Log.
Save the export log file. Select the file and right-click it. Select Open With and then choose Microsoft Office Excel.
Select the Components worksheet and note any messages in the ErrorText column.
Tip
The most common type of failure is an error when referencing a dependent element in the RibbonDiffXml. You might have forgotten to include a
LocLabelthat was referenced somewhere. There might be an extra blank character at the end of an XML parameter referencing another element. All references must match exactly.After you correct the error, complete the steps to import the ribbon again.
Troubleshoot ribbon issues
If you're experiencing an issue with a ribbon command bar button, use the following articles in the troubleshooting guide to find and solve the problem.
- Troubleshooting ribbon issues in Power Apps
- A button on the command bar is hidden when it should be visible in Power Apps
- A button on the command bar is visible when it should be hidden
- A button on the command bar isn't working correctly in Power Apps
- A button on the command bar has wrong labels or translations
- Noncustomizable buttons in ribbon
- Remove an active unmanaged layer of the ribbon in Power Apps
- How to regenerate ribbon metadata
See also
Customize the ribbon
Export ribbon definitions
Use localized labels with ribbons