cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
philifova
Helper II
Helper II

PowerApps Skips the Power Automate flow

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?

 

1 ACCEPTED SOLUTION

Accepted Solutions
SebS
Memorable Member
Memorable Member

@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 🙂

 


If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

View solution in original post

1 REPLY 1
SebS
Memorable Member
Memorable Member

@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 🙂

 


If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,994)