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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (56,107)