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 / Notification in Power ...
Power Apps
Unanswered

Notification in Power Apps when a flow fails

(0) ShareShare
ReportReport
Posted on by 20

Does anyone now of a way where Power Apps can be notified of when a flow triggered from within the app fails?

 

I have a button that runs a flow for a SQL stored procedure, then runs another command within the app.  Problem is, if the flow fails, I don't want the next command to run.  I know I can build other checks to prevent the following commands to run, but would be easy if some status code for success or failure could be returned.

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,387 Most Valuable Professional on at

    When you start a flow from inside Power Apps it runs synchronously.  You can use a Respond to Power Apps or an HTTP response to return results or a status code back to Power Apps.  Inside the flow You can use Run After settings to control what happens if a particular action in the flow fails.  So you need to configure the Run After settings to set a status code when the action fails in flow and then return that status code to Power Apps.

  • GOBrien11 Profile Picture
    20 on at

    Ah, OK - I see how this works now.  Didn't realize you could do this.

     

    Next question is, where is Power Apps can I retrieve the results when I tell the flow to return the results?

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

    In the On Select property where you run the flow, simply save the results of that Run() to either a variable or collection (depending on whether you are returning a status code or a set of results).  Like this

    Set(flowstatus,flowname.run(parameters to pass))
    
    # or
    
    ClearCollect(flowresults,flowname.run(parameters to pass))

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 936

#2
11manish Profile Picture

11manish 628

#3
Valantis Profile Picture

Valantis 604

Last 30 days Overall leaderboard