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 / Dynamic selector conte...
Power Automate
Answered

Dynamic selector content in web automation

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi PA community.

I'm trying to create a desktop flow to a legacy ERP system.

The problem I have is that I do not know how many records this may bring up. I do not want to get the flow to 'get the last' record, but instead to iterate the 'get next' record until such time that the get last UI element disappears. I have thought of using loops, but don't know how many loops may be required. Any suggestions?

Mac77_0-1627521655912.pngMac77_1-1627521676944.png

 

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    Your thought process is perfect.  Put that in a loop, and then add another "if" to say "if 'get last record' doesn't exist, Exit Loop."  Make the number of loops something outrageous that will never be used, like 9999.  The Loop will exit on it's own every time when the button goes away.

    MichaelAnnis_0-1627536646562.png

    Good luck.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you @MichaelAnnis 

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
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard