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

 

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

 

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.

 
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.

 

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (11,352)