Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

how to check condition before run automate flow in model driven app

hello everyone 

I'm use to checking conditions with API by javascript for in my form (which is writing all the function on the button) but seem like ms is not support to edit the default button on command bar yet


so is there any way I can check conditions before the user clicks to run a flow or write a new button to trigger the flow by javascript ?




there are the flow button that I talking about


Super User
Super User

What you can do is check in the flow if the condition is met, and if not email the user what wrong.


Another way is that you can use a trigger condition which will make the flow not run at all if the condition isnt met.


If this solved your issue please mark your post as Solved. 
Also, if you appreciated my answer, dont forget to give it a Thumbs Up 😃

cool solution but it does not look close to my goal

Helpful resources

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (4,160)