How to Call a Flow on Click of a Button in Model Driven Apps Using Power FX

To directly call a power automate flow on click of a button in model driven apps

High level resolution steps

    For this functionality, we make use of the Ribbon Workbench, and a trigger action called “When a http request is received” in Power Automate and copy the URL to the Ribbon Workbench.

    Detailed resolution steps

      Step 1: Add a trigger action called “When a http request is received” in Power Automate and save the flow to Generate the URL automatically and then copy the URL as shown below.

      Step 3: Open the ribbon workbench and select the solution and entity where you want to add the button, and drag & drop the smart button named “Run Webhook” to add a new button into the grid or form as shown below:

      Step 4: Click the button to view the properties and paste the URL copied from the Power Automate flow into the Webhook URL box under Properties on the right pane.

      Output

      Now the button is available in the Form and on click of it the flow gets triggered.