Questions
A few questions/info requests, then an assumptive answer 😉.
- Do you just want one submission to the Powerapp with all the data?
- Or do they need to be merged into a single JSON object with information in a specific order?
- Can you show us your flow?
( block private stuff, and edit as much info as possible into the original question ) - If this is complex, some sample data could help anyone making a solution.
( you can make it up, but ensure the structure and data types are the same )
Potential Solutions
Purely going on what you've said thus far, I've got two ways you could progress, with relative ease ( I think 😞
Blind Date(a)
If you just need to get all their data into the Powerapp in one submission, then
- Create an array variable, eg. "arrayVAR".
- Append each identical JSON response as an object to arrayVAR.
Now you have a JSON array of all the data to send to the Powerapp which can process it.
Objectification
If you need to construct a whole new JSON object, then the easiest way to do that is as logically as possible, so ( again, purely on what I can see here ) I would:
- Run a parallel branch for each API pull.
- Set variables ( with appropriate types ) for *everything* you need.
- Build a compose or string variable at the end ( joining the branches ) that inserts the variables into the new structure.
- Send the JSON to the Powerapp.
This won't be the end of your dealings with the flow, because I'm sure you'll see how it can be done more efficiently once you start seeing how data can be 'shortcutted' and worked with within the flow. However doing it this way will allow you to plot out the logic, easily, in your head before going down that road.
Hope this helps, and good luck! 👍