
Announcements
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?
);