Skip to main content

Notifications

Power Apps - Building 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?

 

  • Verified answer
    SebS Profile Picture
    SebS 4,141 on at
    Re: PowerApps Skips the Power Automate flow

    @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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard