Open custom pages as dialogs and use cloud flows (preview)
[This topic is pre-release documentation and is subject to change.]
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.
Create a command
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: Create a model-driven app that has an account table page
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:
- Select + Add library
- On the Web Resource: New browser window, enter a Name and optionally a Display name name and Description.
- For Type, select Script (JScript).
- Select Text Editor.
- Select Save, and then select Publish to save and publish the web resource.
- Close the browser window tab to return to the command designer.
If you can't find the web resource enter the name in the Search box.
Optionally, change the Visibility logic.
Select Save and Publish.