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

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

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.
Highlighted
Helper I
Helper I

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

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
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (10,724)