web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Flow validation in Pow...
Power Apps
Unanswered

Flow validation in PowerApps

(0) ShareShare
ReportReport
Posted on by 44

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.

 

Categories:
  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    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.

  • JohnOReilly34 Profile Picture
    44 on at

    Hi, 

     

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

     

    Thank you

  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

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

    screenshot.png

  • caseyroot Profile Picture
    21 on at

    This is very helpful and logical, except I cannot get the syntax right... 

    It's not liking the ".return="true", portion of the formula.  

  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    In PowerApps you need to save the response in a variable or collection and then access it via the variablename.return

  • caseyroot Profile Picture
    21 on at

    Can you provide screen shots or walk me through this?  Not having much luck on my own.

  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    Can you show me the REspond to Power Apps action at the end of your Flow?

  • caseyroot Profile Picture
    21 on at

    Absolutely, it's the same as your screen shot in your setup instructions.

    Capture.JPG
  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    Not sure what to tell you then.  If you look at my first post you can see what I put in my powerApp to have it respond to the Flow return value.  Not sure why it isn't doing that in yours.

  • caseyroot Profile Picture
    21 on at

    Well it was something simple, I had to delete my Power Automate from Power Apps and re-add it.   Now I can see the variable.

    Thanks for this post and your help!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard