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 / Make Loop every minute
Power Automate
Answered

Make Loop every minute

(0) ShareShare
ReportReport
Posted on by 73

Hi,

 

I'm doing data gathering every minute so I'm doing loop in my flow but I don't know how. So if anyone have done loop time interval please do share with me.

 

Thanks.

I have the same question (0)
  • Rhiassuring Profile Picture
    8,692 Moderator on at

    Every minute, forever?

    You could have a scheduled flow run every minute, instead, by using the schedule trigger.


    Otherwise, in a loop, you would put in a delay at the top of it.

     

    Rhiassuring_0-1669433427254.png

     

     

  • VJR Profile Picture
    7,635 on at

    Hi @Zdahn

    In a nutshell you will have to use a combination of "Wait" and any of the "Loop" actions.

    If that does not suffice, please share more details of what you are looking for and what do you intend to do.

     

     

    Hi @Rhiassuring, PS: this is Desktop Flows forum 😉

     

     

     

     

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    Yeah, as @VJR wrote - you would need to give some context. Otherwise, we can only advice using the "wait" action.

     

    What are you waiting for in that loop?

    Is this some information that popups in the web or GUI app? If yes -try to use dedicated actions such as: wait for a text, wait for window, wait for element, wait for image to appear/disappear etc.

     

    In general i avoid using pure "wait" as this affects performance vs if i can wait for specific element/text/image 

     

  • Zdahn Profile Picture
    73 on at

    The WEB that I'm working is https://www.tradingview.com/chart/?symbol=BITSTAMP%3AXRPUSD showing a minute interval countdown for every closing price. I'm supposed to use wait for an element, unfortunately no popups in web that 1 minute time already lapsed or closing interval. In addition, that countdown display stays as it is and it can't pick an element,

    Zdahn_0-1669542581614.png

    I think it's a canvass.

     

    So my plan actually is to use another clock apps in windows but you will have to automate to reset in a loop which will turn out to exceed 1 minute and may not sync with the WEB's interval countdown.

     

    Any assistance would be very much appreciated.

     

    Thanks

    Zdahn.

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    Use their API  😎 instead of automating interface 

    https://www.tradingview.com/rest-api-spec/

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

    What I hear as your problem is:

     

    if the flow takes 20 seconds, I only need a 40 second wait time….if the flow takes 10 seconds, I need a 50 second wait time, etc.

     

    in order to achieve this, I would:

    Loop

        Get  urgent date time to %StartTime%
        Add 1 minute to %StartTime% to get %NextTime%
        ‘Perform 1 Loop’s actions here

        Loop While 1= 1

            Get current datetime to %CheckTime%
            If %CheckTime% is > %NextTime%
                Exit (Loop)

            End(If)

        End (Loop)

    End(Loop)

     

    this will loop through checking what time it is and move onto the next loop when the CurrentDateTime is exactly 1 mins past the previous start time.

  • Zdahn Profile Picture
    73 on at

    That I don't know how. I'll look in to it. Thanks for advise

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    @Zdahn 

    Just an idea, I've noticed the two values on the screenshot are spyable, so maybe use those?

     

    1. In the loop:  Work with 2 variables: "OldPrice" and "CurrentPrice"
      1. Assign "OldPrice" = "CurerntPrice"
      2. Grab new value to "CurrentPrice"
      3. If "OldPrice" does not equal "CurrentPrice" --> call/do any logic you want to execute on the price value
      4. wait for 1s 

     

    Or, as mentioned earlier, avoid using fixed wait: Grab the new price, do logic, and wait until the price disappears in a loop

     

    1. Grab the current price to "CurrentPrice"
    2. Do any logic you want to do on the price change
    3. Wait until the price changes - you can use something like waiting for the text to disappear from the web page
    4.  

     

     

     

    momlo_2-1669567004884.png

     

     

  • Zdahn Profile Picture
    73 on at

    How do you add a minute to %StartTime% ?

  • Zdahn Profile Picture
    73 on at

    How do you add a minute to %StartTime% ?

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 258 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 198 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard