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

Notifications

Announcements

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
    68,707 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
    68,707 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard