cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Make a loop to get all the data.nextlink

Hi All,

 

I do some simple tests in order to set up something more complex later.

 

When I want to retrieve all O365 users, with the URI "https://graph.microsoft.com/v1.0/users" I don't retrieve the whole list. For that, I would have to get the data.nextlink and make a loop.

How can I create a loop that will make a GET of the nextlink?

 

How can I make sure that once all the pages have been browsed, add the results in an HTML table?

 

For the moment I can only get the first result page.

 

If I am not precise enough, or if any information is missing, do not hesitate to let me know...

 

Thank you in advance for your feedback.

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Make a loop to get all the data.nextlink

 

Hi @trisdev ,

 

The Search for users action can be configured without any parameters, it will return all users.

Image reference:

66.PNG

 

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.

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Make a loop to get all the data.nextlink

 

Hi @trisdev ,

 

Have you tried using the Search for users action directly? Without setting Top and Search term, all entries are returned by default.

Please take a try.

 

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
New Member

Re: Make a loop to get all the data.nextlink

 
Thank you for your answer.
 
I tried to use the "User Search". But it doesn't match my need, or I don't know how to use it, maybe you can show me an example?
 
The search for users allows you to return users according to a criterion, I would like to retrieve the list of all users, without criteria.
 
When I use the "https://graph.microsoft.com/v1.0/users" URI I do not use a request filter.
 
Best regards,
 
Tristan.
Highlighted
Community Support
Community Support

Re: Make a loop to get all the data.nextlink

 

Hi @trisdev ,

 

The Search for users action can be configured without any parameters, it will return all users.

Image reference:

66.PNG

 

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.

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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
Top Kudoed Authors
Users online (6,747)