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 / PowerApps Skips the Po...
Power Apps
Answered

PowerApps Skips the Power Automate flow

(0) ShareShare
ReportReport
Posted on by 125

Hi!

 

So I have a button that will trigger a Flow (creates an excel file) then after the Flow is done I have a Download() function. Apparently that is not what's happening.

 

for better visual here the code on the OnSelect button.

 

CreateExcelFile.Run(mm.xlsx);

Download(excelLink);

 

The flow is not done yet and it will automatically go to Download(). Is there a way to delay the code while the flow is not done yet?

 

Categories:
I have the same question (0)
  • Verified answer
    SebS Profile Picture
    4,711 Super User 2026 Season 1 on at

    @philifova 

     

    I think there is a way, but I did not try this with Download()

     

    In the flow, there is an Action called Respond to a PowerApp or Flow Add this action at end of Your flow and  add a variable and call it "Success", set it to true

    just like on-screen below

     

    SebS_0-1669843217917.png

     

    Now back to Your button in Power App try this code :

     

     

     

    If(CreateExcelFile.Run(mm.xlsx).Success = "true",
    Download(excelLink))

     

     

     

     

    Test it for both of us 🙂

     

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 372 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 303 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 238 Super User 2026 Season 1

Last 30 days Overall leaderboard