cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DileepGolla
Level 8

Flow validation in PowerApps

Hi,

We have a form where the User fills the data and click the Submit button. Then the data will be saved to the SQL table and email notifications are sent using Flows and the User will be navigated to the confirmation screen.

 

Button.Onselect: MyFlow.Run();Navigate(ConfirmationScreen,ScreenTransition.None)

 

Is there a way where we can check if the Flow has been actually executed before the user is navigated to the confirmation screen? I have checked the OnSuccess property of the Form, it works if we are using SubmitForm() and I am not sure how to validate the Flow instance.

 

Any help on this would be greatly appreciated.

 

Regards,

Dileep

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Flow validation in PowerApps

Hi @DileepGolla,

 

The Flow.Run() would generate a result within PowerApps to indicate whether it has been executed successfully.

If it succeed, the result would be true, otherwise, it will run in false.

You may take a try to add a button and implement the following code to check:

ClearCollect(FlowResult, MyFlow.Run() )

The FlowResult collection would just show a Value column with the result to 'true' or 'false'.

 

So if here you would like to navigate to another screen based on the success result of the flow running, the formula should be written as :

If( MyFlow.Run(), 
    Navigate(ConfirmationScreen,ScreenTransition.None),
    true)

The logic here is when the Flow Runs, it will check the running result, if succeed, navigate to another screen, otherwise returns true to stay with current screen, you may also define other actions if flow fails.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Flow validation in PowerApps

Hi @DileepGolla,

 

The Flow.Run() would generate a result within PowerApps to indicate whether it has been executed successfully.

If it succeed, the result would be true, otherwise, it will run in false.

You may take a try to add a button and implement the following code to check:

ClearCollect(FlowResult, MyFlow.Run() )

The FlowResult collection would just show a Value column with the result to 'true' or 'false'.

 

So if here you would like to navigate to another screen based on the success result of the flow running, the formula should be written as :

If( MyFlow.Run(), 
    Navigate(ConfirmationScreen,ScreenTransition.None),
    true)

The logic here is when the Flow Runs, it will check the running result, if succeed, navigate to another screen, otherwise returns true to stay with current screen, you may also define other actions if flow fails.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (7,123)