cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Top Kudoed Authors
Users online (9,070)