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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Items in Do Until ...
Power Automate
Unanswered

Get Items in Do Until Loop

(0) ShareShare
ReportReport
Posted on by

I'm creating a flow to continuously compare a variable to values in a constantly changing Sharepoint list to search for a match. The Do Until loop should stop when a match is found.

 

I thought the best way would be to put a "Get Items" action in a "Do Until" loop and have the conditions of the "Do Until" loop say when <variable> is equal to <column name from the Get Items action> but it won't let me add the dynamic value from the Get Items action to the condition of the Do Until. Any suggestions? See screenshot below

cap.PNG

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Anonymous 

    Without addressing your specific issue, there are a few points that I'd like you to know:

    • A flow will run for a maximum of 30 days - after 30 days a running Flow will be cancelled
    • A Do until loop will loop a maximum of 5000 times unless you have a premium license
    • The default is for a Do until loop to timeout after 1 hour and/or 60 loops.  To change the default, click on "Change limits" in the action
    • The values retrieved via get items or get item are static and will not change.  You need to retrieve the values again for updated info (get item or get items).

    Documentation on Flow limits can be found here

    You say that you want the Flow to run continuously - that might not be the best way to proceed.

    As an alternative, you might create a Flow with a Schedule trigger that fires every few minutes.  At which time you can fetrive your items and perform your tests, updates, etc..

  • Community Power Platform Member Profile Picture
    on at

    @ScottShearer Thanks for your response.

     

    I can't really use a scheduled flow because the variable I'm comparing it to is being created when an automated flow is triggered (an email is received). As long as I can change the limits and add wait actions to the Do Until loop, shouldn't I be able to have it refresh the list and re-compare each time?

  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Anonymous 

    Yes you can within the 5000 iteration and 30 day limit.

  • Community Power Platform Member Profile Picture
    on at

    @ScottShearer 

    I am still having my original issue where flow will not let me reference the list in the conditional statement of the Do Until action if the "Get List" action is within the Do Until action. Is there a better way to do this?

  • Verified answer
    v-alzhan-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    Please take a try to refer to screenshot below to create the flow:

    1.png

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    on at

    Thanks @v-alzhan-msft  this worked great!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard