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 / Get Items within Do Until
Power Automate
Answered

Get Items within Do Until

(0) ShareShare
ReportReport
Posted on by 40

Hello everyone,

I've spent a week searching for a solution to my problem and haven't found anything yet. Maybe you can help me find a solution.

 

So, about my Flow. The trigger for the flow is a button in Power Apps. From Power Apps, I pass the necessary information to filter a SharePoint list. After filtering this list, I find users in one of the columns and send them an email.

 

Details: New data is constantly coming into the list, and one of the filtering conditions (

formatDateTime(addDays(utcNow(), -1), 'MM/dd/yyyy')

) is the date (always the previous day). The flow should run for 12 days, so I put everything in a Do Until Loop. Everything works as intended on the first iteration. But the next day, for some reason, the Do Until doesn't trigger the list filtration again and uses the previous data. As a result, the column with the user's email remains empty, and the flow ends with an error.

Screenshots for better understanding below.

 

 

Screenshot 2023-11-09 at 09.45.41.png
Screenshot 2023-11-09 at 09.46.55.png
Categories:
I have the same question (0)
  • VictorIvanidze Profile Picture
    13,081 on at

    Hi @denisbalakirev,

    where exactly in you flow you are filtering items by date?  In which action?

  • denisbalakirev Profile Picture
    40 on at

    @VictorIvanidze Hi, 

    Get Items function, Filter Query field.  Get Items located in Do Until Loop.

    Screenshot 2023-11-10 at 16.01.32.png

     

  • VictorIvanidze Profile Picture
    13,081 on at

    Please show the "Do until" options: Count and Timeout.

  • denisbalakirev Profile Picture
    40 on at

    Screenshot 2023-11-10 at 16.11.46.png

    I can see only 1 option there 

  • VictorIvanidze Profile Picture
    13,081 on at

    You have shown Settings.

    I mean the things you will see if you click "Change limits"

  • denisbalakirev Profile Picture
    40 on at

    ok, got it. Usually counter equal to 12 bit I lowered the value for testing purposes. 

     

    Screenshot 2023-11-10 at 16.21.01.png

  • Verified answer
    VictorIvanidze Profile Picture
    13,081 on at

    PT1H means one hour. It's the source of your problem.

    See https://nishantrana.me/2022/06/06/change-limits-in-do-until-control-power-automate/

  • denisbalakirev Profile Picture
    40 on at

    Thank you for pointing out on important setting. 

    I will test it and let you know the result. 

  • VictorIvanidze Profile Picture
    13,081 on at

    Рад помочь! 😉

  • denisbalakirev Profile Picture
    40 on at

    Many thanks! 

    Спасибо!🙂

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 604

#2
Valantis Profile Picture

Valantis 502

#3
Vish WR Profile Picture

Vish WR 417

Last 30 days Overall leaderboard