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

Desktop "Wait for window" step does not reset within loop?

(1) ShareShare
ReportReport
Posted on by 21

I'm trying to build a flow that takes an action any time a certain Windows notification appears, which looks like this:

 

waitforwindow.PNG

 

This works fine on the first iteration. However, on the second iteration, PAD will immediately pass the "Wait for window" instruction, indicating that this doesn't reset properly, even though when it then pulls the WindowProperty variable, it comes up empty, so then the "Else" condition takes effect and my flow ends. (Without that "Else" condition, it will simply continue looping while doing nothing.)

 

Is there any way I can force the "Wait for window" step to reset itself each time the loop restarts, so that it actually does wait for the notification to reappear? As you can see, I added the "close window" step, but that hasn't done the trick.

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Hi @FBayer 

    Could you please clarify what you mean by "Wait for window step to reset itself"?

     

  • FBayer Profile Picture
    21 on at

    I already explained in my post.

     

    The first time the loop runs, it waits for a Windows notification window to appear.

     

    The second time the loop runs, it just continues, without waiting for a new notification to appear.

  • VJR Profile Picture
    7,635 on at

    Since in the "Wait for window" action you are not changing anything so there's nothing to reset.

    Try adding a static Wait before the Wait for window.

  • scooterk97 Profile Picture
    10 on at

    Hi @FBayer . I am having the exact same issue as well. Did you ever find a fix?

  • FBayer Profile Picture
    21 on at

    Not really, I took out the loop so now I manually re-trigger the flow after each time it executes, which is annoying but better than nothing. You could probably come up with a better workaround using cloud flows (effectively creating a "trigger loop") but I don't have a cloud licence.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    There is nothing to reset when waiting for a window or a window content. It does not cache the fact that it successfully found a window previously. It will check for the window to exist in the screen every time. If it continues immediately, it means that your window must exist. 

     

    I have had experience with a certain notification pop-up in an ERP system called Microsoft Dynamics Axapta that actually is "always present" but not always visible. So, the Wait for window action and the If window condition would always find it, even if it visually did not appear on the screen. I modified the selector to only pick up the window when its "Visible" property was true. This solved the issue for that specific case. You might want to check if that's not the case for you, too.

     

    This should probably be the case for you, too, because if the window wasn't there, the Get details of window would fail and throw an error saying it could not find the window to extract the details from, instead of actually returning an empty value.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • scooterk97 Profile Picture
    10 on at

    Thanks, @FBayer . I recently switched to "Wait for Image" and my loop has been working fine. Thanks for the reply and good luck to you!

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 266 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 134 Super User 2026 Season 2

Last 30 days Overall leaderboard