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 Automate / Calling Flow from butt...
Power Automate
Unanswered

Calling Flow from button problem

(0) ShareShare
ReportReport
Posted on by 54

I am trying to create a routine based on a button.  Basically I want to loop through run numbers in a table (say 10 run numbers).  I want to create a CSV file for each of them on Onedrive.  This works if I run it without the loop, but after banging my head against the wall for hours, I figured out the loop is faster than the flow execution and it is stepping on each other.  Here is an example

 

ClearCollect(runLoop,Filter(tableA,headerRecNo = 1));
ForAll(runLoop,
       createReceipeRunForCsv.Run(1,rrunNumber);    <- A flow that creates a row in tableB
callBuildRunCSVfile.Run(JSON(tableB,JSONFormat.IndentFour),"ReferenceFile_Recipe_"&recipeHeaderGallery.Selected.recNo&"_"&rrunNumber&".csv")   <-  This will create the .csv file

 

 

So if I take the 2 calls to the flows out of the ForAll, and just call them with the parameters, it works.  But if I run it in the ForAll, it looks like it does the "Run"s then loops to the next one before the previous "Runs" complete.

 

Any ideas on workarounds or what I'm doing wrong?
);

Categories:
I have the same question (0)

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard