web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Getting all values (di...
Power Automate
Answered

Getting all values (distribution lists) by traversing @data.nextLink

(0) ShareShare
ReportReport
Posted on by 18
I am trying to get a list of all distribution lists to be used in a Power App to send emails.
 
I have a way to get all groups by using a previous answer I found:
 
 
But I believe it is only returning the first 100 DLs - my organisation has around 3000. I noticed each list has a link to the next page of DLs, so I am wondering if it is possible to use Power Automate to extract a big list of all 3000 DLs and return that to be used in my PowerApp?
Categories:
I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at
    Hi,
     
    You have to include a do while logic here which runs the above http request until the @data.nextLink is not present in http response.
     
    Try something simmilar as shown below
     
    1. Initialize an array variable which helps to collect details from http response 
     
    2. use send http request action to get details 
     
    3. Use initialize variable to initialize a string variable which stores nextlink if present
     
    Expression: 
    body('Send_an_HTTP_request')?['@odata.nextLink']
     
    4. use append to array variable to store the data from the http response , note that for demo purposes, i have stored body object to the array.
     
    5. use Do Until action which runs the child actions until next link is not present.
    Below actions would be present in do until
    Use a condition which checks nextlink value is null or not ?
     
    5.1 - use send http request to send the request to next link url as shown below
     
    5.2- Use append to array variable to append details from http response
     
    5.3- use set variable to set the next data link from above http response
     
    Expression: 
    body('Send_an_HTTP_request_2')?['@odata.nextLink']
     
     
    So this is how you can capture required details from API which would have paginated results.
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard