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 / How to use MS FLOW to ...
Power Automate
Answered

How to use MS FLOW to extract from a URL API using a table as part of the URL parameter to create a single file with all results?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Guys,
My issues is exactaly as the Subject: How to use MS FLOW to extract from a URL API using a table as part of the URL parameter to create a single file with all results?

In my scenario, I have:

1) A .csv table (actually a single column named "M_ID") with 7K rows;

2) An URL, that return a json.


Part of this URL is the column "M_ID", something like this: http://lorem.ipsum/"M_ID"/true/out=json
I need to extract from the URL all json returns and create a single file.

Is it possible to do this with Flow?

I don't know if I was clear, if not let me know.

Categories:
I have the same question (0)
  • Verified answer
    Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at

    @Anonymous 

    Thinking this through, there are definitely better ways to do this, but this is what I've got:

    • Manual Trigger (or whatever you're already using as a trigger)
    • Initialize an Array variable
    • Get your list of M_ID's (either from an SP list or Excel table.
    • Apply to each loop
    • Inside the loop: Your API call to get the JSON results
    • Inside the loop: Append to Array variable
    • Outside the loop, create a file (whatever format) with the array variable as the body.
    • Save

    I imagine, with 7,000 M_ID's, your array will get pretty huge quick, so it will probably take some finessing (default max may be 500, but I think you can change that).

     

    Another option might be to write everything to text files and then use a batch command to append them together.  Dunno.

     

    Keep us posted.

    -Ed-

     

     

    If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @edgonzales,
    Thanks for your support.

     

    I used your suggestion, and it is Working!
    But there is a limitation, 256 loops.

    Is it possible change this limitation?


    image.png

     

     

  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at

    Great to hear!  You're on the right track.

     

    Check the limits here and compare that to your license before you go too much further.  Without a P1 or P2, it looks like you cap out at 5,000 even if/when we figure out how to up the limit from the current 256.

     

    On that, I think it might be the getting the limits from the list items.  Look around for an article to change the default depending on your action step.  I found this one, but don't know if it totally applies.

     

    Keep us posted.

    -Ed-

     

     

    If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Anonymous ,

     

    Please try enabling Pagination and increasing the Threshold to the expected value.

    4.PNG

    It is also recommended to set Apply to each to improve the Degree of Parallelism to improve execution efficiency.

    5.PNG

    Hope it helps.

     

    Best Regards,

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 707

#2
Haque Profile Picture

Haque 475

#3
Valantis Profile Picture

Valantis 456

Last 30 days Overall leaderboard