cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dips23
Level: Powered On

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 Team
Community Support Team

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.
dips23
Level: Powered On

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

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 83 members 4,484 guests
Please welcome our newest community members: