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 / How to deal with a sud...
Power Automate
Answered

How to deal with a sudden logout on a website?

(0) ShareShare
ReportReport
Posted on by 6

Hi there,

 

I've been using Power Automate Desktop for about 2 weeks now to fill out a multi-page, extensive web form. I have always changed and expanded my flow for this. Filling out text fields, uploading files, marking checkboxes, etc. all of this works quite well by now. Although I need help now.

 

It happens very rarely, but the website that this form is on sometimes suddenly and unexpectedly logs me out. That prevents me from really leaving it unattended. So I need a way to be able to log in again at any time and then continue the flow.

 

As soon as you are logged out, the "login dialog" appears, in which my user is already selected. All I have to do is enter my password (or select the data stored in the browser) and click on Log in. I think its easy to handle the login dialog once it appears... But how do I prepare PAD to handle this at ANY time?

 

Hopefully one of you can explain to me how to do this. Where do I have to enter what and how do I start?

 

Thanks for the help! 😀

 

Chris

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    There is an "If web element exists" action.  So:

    If password element exists, run login steps to get back to web form entry

    End (IF)

    Complete web form.

    Have this before every web form entry, and it might add 1/2 a second to each one, but it will solve your problem.

     

    Best of luck!

  • chris72 Profile Picture
    6 on at

    Thank you for your answer Michael!

     

    As I said, the logout rarely occurs. Sometimes I work with it for several hours and don't even see the login dialog. When the login dialog was last displayed, I immediately made a few notes. Window names, texts on the page, names of the fields, etc. I can use that now...

     

    My flow currently has about 80 steps. Should I really incorporate this If-Then every 5 or 10 steps?

     

    That would be like repeating CSS, header, footer and sidebar over and over again instead of outsourcing it. That sure works, but is it nice?

     

    Is there no central, one-off solution for this?

     

    Thanks for your help!

     

    Chris

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

    You could make loggin in an error subflow.  So, you set up a subflow that says:

    Enter password, click submit button

     

    And then you wrap the rest of your flow in an On Error Block.

    And you point the error block to the OnErrorSubflow.

  • chris72 Profile Picture
    6 on at

    Thank you Michael!

     

    that's 2 options I can play with. One of them will sure do it. 😀

     

    Chris

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

11manish 227 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 213 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 151

Last 30 days Overall leaderboard