Create a Flow which iterates over a collection, similar to what this previous post covered. You should have your starting point and then a condition in where the ‘Collection’ and the ‘Apply to Each’ blocks are.
Create an Array Variable
Build your HTTP Request
In this next step, this Array variable will be added to the single payload based on the schema you need for the HTTP Request. In the example below, I’m building the object based on the Text Analytics API from the Azure Cognitive Services.
Build the HTTP request as normal, specifying a single pair of curly braces and your collection name within your JSON payload object, together with your dynamic global variable which you defined at the beginning of the Flow. You do not need to add any square brackets in as you would do if you were building this manually. These get added in for you from your Array Variable block, as if you was coding it yourself. (A new array can be created using ‘’).
This post has covered how to iterate over a collection element in Microsoft Flow and obtain data from each of those elements to use in another. I hope this has helped. If you have any questions, please leave them in the comments below!