cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate IV
Advocate IV

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
Highlighted
Community Support
Community Support

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

4 REPLIES 4
Highlighted
Community Support
Community Support

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

Highlighted
Frequent Visitor

Re: Flow validation in PowerApps

Hello, 

 

I have a MyFlow.Run() method that is returning true when a flow fails. 

Are there any other ways to check the results of a Flow in PowerApps? 

Highlighted
Helper I
Helper I

Re: Flow validation in PowerApps

Yes, my Flow also fails and returns true

Highlighted
Advocate II
Advocate II

Re: Flow validation in PowerApps

My problem is that some flows aren't even starting so this method would still be useful for me.

@SChorkawy wrote:

Hello, 

 

I have a MyFlow.Run() method that is returning true when a flow fails. 

Are there any other ways to check the results of a Flow in PowerApps? 


That's because it started (yay!), it just didn't finish successfully (boo). I don't know of any way of reading back the progress of a flow, besides adding steps in the flow which update some table of field. Your PowerApp can then read that field.

 

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,727)