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
Super User
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

Super User
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
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 88 members 3,890 guests
Please welcome our newest community members: