cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
trisdev
Level: Power Up

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

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

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.
trisdev
Level: Power Up

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

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

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

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 Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (4,403)