cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Microsoft
Microsoft

Example of Paging with Skip and SkipToken in flow?

I'd like to build out a Flow that would access the Microsoft Graph API, which I'm finding quite a few samples on.  However, it's likely that I'll need to page through the results as I'll be pulling in many records to process.  Does anyone have a sample Flow or have screenshots on a proven/known way to page through results and call the API until we have all the results?  

 

Thanks!

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Example of Paging with Skip and SkipToken in flow?

Hi @seanmcn,

 

Could you please share a screenshot of your flow's configuration?

Do you use the HTTP action to access your Microsoft Graph API within your flow?

Do you want to handle more records than are returned in a single call from your Microsoft Graph API?

Further, could you please show more details about your scenario?

 

If you use the HTTP action to access your Microsoft Graph API and you want to handle more records than are returned in a single call from your Microsoft Graph API, I think the Pagination option within the Settings menu of your HTTP action could achieve your needs.

 

I suppose that you add a "HTTP" action within your flow, is it true? Please click "Menu" button of your HTTP action and then select Settings option as below:20.JPG

Within Settings panel for "HTTP", please enable Pagination option and then configure the Limit property:21.JPG

 

 

More details about the Pagination option, please check the following article:

https://flow.microsoft.com/en-us/blog/four-connector-action-settings/

 

 

Best regards,

Kris

 

 

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

Re: Example of Paging with Skip and SkipToken in flow?

Hi Kris, thanks for the reply!  Specifically to answer your questions: 

 

Could you please share a screenshot of your flow's configuration? I haven't created a final flow yet, it's going to be relatively basic pulling from the Graph and keeping a list of users in sync in a CRM system. 

 

Do you use the HTTP action to access your Microsoft Graph API within your flow? Yes, it would be the generic HTTP action. 

 

Do you want to handle more records than are returned in a single call from your Microsoft Graph API? Yes

 

Further, could you please show more details about your scenario?  Yes, I was going to be using the Microsoft Graph to retrieve a fitlered list of AD Users (into the tens of thousands).  The query would be all enabled users not containing "#" in their UPN. The results would then be used to ensure each user is listed as a 'contact' in a CRM system (simple contact details, name & email maybe title). 

 

I wasn't sure if there was a known way to implement paging with the Graph or if it generally would work "plug and play" as-is with the paging settings on the HTTP Action connector. I was also hoping I could find some documentation or someone with previous experience using the graph with the HTTP Action connector and paging - if not I'll give it a shot myself and see how it goes. 

 

Thanks for the response! 

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

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

Users online (3,859)