cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JohnOReilly34
Level: Powered On

Flow validation in PowerApps

Hi, 

 

I would like to move to a suceess screen when I run a flow and when the flow doesn't run, I'd like to go to another screen (unsuccessful). 

I think I've done the success part correctly but I'm not sure how I do the unsuccessful screen part. 

 

On select I've the following: 

If(PApps_BCard_Create_Contact.Run(paramFirstName,paramLastName,paramCompany,paramMobile,paramJobTitle,paramEmail,paramAddress,paramAkadTitel,TakenPhoto,Dropdown.Selected.Value);Navigate('Success Screen',ScreenTransition.Fade),true)

 

I changed it to this but it always jumps to the unsuccessful screen. 

If(PApps_BCard_Create_Contact.Run(paramFirstName,paramLastName,paramCompany,paramMobile,paramJobTitle,paramEmail,paramAddress,paramAkadTitel,TakenPhoto,Dropdown.Selected.Value);Navigate('Success Screen',ScreenTransition.Fade),true); If(PApps_BCard_Create_Contact.Run(paramFirstName,paramLastName,paramCompany,paramMobile,paramJobTitle,paramEmail,paramAddress,paramAkadTitel,TakenPhoto,Dropdown.Selected.Value);Navigate('Success Screen_1',ScreenTransition.Fade),false)

 

Any ideas please? Thanks for any help.

 

3 REPLIES 3
Dual Super User
Dual Super User

Re: Flow validation in PowerApps

First, you need to setup a Respond to PowerApps action in the Flow that returns a True or False depending on whether the flow worked or not. That result will have a name, I called mine Result. So this is the formula that worked for me.

If(FlowReturnValue.Run(your parameters here).result = "True",Navigate(SuccessScreen,ScreenTransition.Fade),Navigate(FailureScreen,ScreenTransition.Fade))

The IF statement will call the Flow and evaluate the returned result value as either True or False.  If True it will navigate to success, if False it will navigate to failure.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
JohnOReilly34
Level: Powered On

Re: Flow validation in PowerApps

Hi, 

 

Thanks. Would you be able to share a screenshot of your flow please?

 

Thank you

Dual Super User
Dual Super User

Re: Flow validation in PowerApps

My Flow was very short.  Just the essentials to call the Flow and then return the value.

screenshot.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

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
Users Online
Currently online: 450 members 5,950 guests
Please welcome our newest community members: