cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
trisdev
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
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.
trisdev
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
Did you attend MBAS? Claim your badge

Attending MBAS? Claim your badge

Whether you’ve streamed the digital event live, or you're watching on-demand, claim your attendee badge to sport on your profile.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (5,594)