Events
Power BI DataViz World Championships
Feb 14, 4 PM - Mar 31, 4 PM
With 4 chances to enter, you could win a conference package and make it to the LIVE Grand Finale in Las Vegas
Learn moreThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This sample demonstrates how you can build simple custom pages that open as dialogs when a command is clicked. You may also call a cloud flow from the custom page dialog.
First, you'll need to determine the table and command bar location to place the command.
Open the app designer, and then add the desired table to your model-driven app. More information: Build your first model-driven app
Publish the app.
Select the desired table from the Pages area in the app designer.
Select ... (ellipsis), and then select Edit command bar.
Select the location of the command bar you want, and then select Edit. More information: Command bar locations
Select + New on the command designer command bar, and then enter the command properties: More information:
Note
This commanding customization is currently only supported using JavaScript. Currently, Power Fx isn't supported.
In the Add JavaScript Library dialog, select the library you created in the previous steps, and then select Add.
Tip
If you can't find the web resource enter the name in the Search box.
In the Command properties pane, enter the name of the JavaScript Function. In this example, openDialog is entered.
Optionally, change the Visibility logic.
Select Save and Publish.
Design a custom page for your model-driven app
Events
Power BI DataViz World Championships
Feb 14, 4 PM - Mar 31, 4 PM
With 4 chances to enter, you could win a conference package and make it to the LIVE Grand Finale in Las Vegas
Learn moreTraining
Module
Advanced command bar concepts - Training
Explore advanced customization techniques for command bars in Power Apps model-driven apps, including JavaScript implementation and AutoSave features.
Certification
Microsoft Certified: Power Platform Developer Associate - Certifications
Demonstrate how to simplify, automate, and transform business tasks and processes using Microsoft Power Platform Developer.