cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dips23
Helper I
Helper I

How to process all records to be accessed from API in batches ?

Hello,

 

I want to store more than 100 records fetched via Graph API.

 

At at time, Graph API returns 100 records which I have saved in Excel as follows:

 

  1. Invoke HTTP Request
  2. Parse JSON
  3. Apply each item on JSON Array
  4. Create new record in Excel file

However, how to process next batch of records in Microosft Flow with the same above steps ? Is that possible with  any condition/loop/parameter ? 

 

Best Regards,

2 REPLIES 2
v-bacao-msft
Community Support
Community Support

Hi @dips23 ,

 

Could you provide more details about the details of the Flow configuration?

What I care about is why you don't use List rows present in a table action directly to get records.

And why only get 100 condition records at a time, this is a limitation of the API or a custom setting?

Please provide more details to help us provide the right workaround for you.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-bacao-msft 

 

Thank you for your attention! Please find answers as follows:

 

Could you provide more details about the details of the Flow configuration?

Basically, I want to store all O365 Users details into Excel file via Flow, for which I am invoking users graph API (https://graph.microsoft.com/v1.0/users) -> this returns JSON response as Users array which I am storing in Excel file  using apply each loop ( This flow works for first 100 users )

 

And why only get 100 condition records at a time, this is a limitation of the API or a custom setting?

Yes, this is a limitation of  API of returning 100 items on first request.

 

In JSON response ( Users Array ), I get another link that would return next 100 records - this link I may store in variables, however, my concern is, how do I invoke that link which would process the same steps to store users details in Excel file.

 

I hope this is helpful to understand an issue, please let me know if requiring any further information!

 

Note : I only require working solution in Microsoft Flow Designer.

 

Best Regards,

 

 

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,330)