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 Automate
Unanswered

Nested Loop?

(0) ShareShare
ReportReport
Posted on by 7

Hello PA Community, 

 

I have a loop within a web scrape that works great; however, I have multiple pages that I need the loop to run through. How would I setup the loop to start over once the "Next" page is clicked without having to make a bunch of copies of the same loop? Is there a nested loop I would use? 

 

As an example setup the flow to loop through each row in the data table, then click on the next page, then a copy of the exact same loop starts up again on the second page. 

 

ehubb20_0-1685654969362.png

 

Any help is greatly appreciated! 

 

 

Thank you, 

Eric

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @ehubb20 

     

    Extract data from webpage has an option to specify next page selector while scraping data, have you used for your case ?

     

    Nived_Nambiar_0-1685673719188.png

     

     

    see below video for reference 

     

    https://youtu.be/WXK0u2yXLrU

     

     

    Mark it as solution if it resolves your query !

     

     

  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @ehubb20 

     

    Instead of copying all the actions again

     

    You can use Loop and inside that you can place that all the actions required, so at the end you need to increment the loop using Set Variable let say Index = Index + 1

    So If the Index is 1 for the 1st time after completing it will increment to 2 where it will pick the next URL

     

    So, without need of copy Actions you can loop and complete your requirement

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 159

Last 30 days Overall leaderboard