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 / Attach to Chrome and u...
Power Automate
Unanswered

Attach to Chrome and use the same Unattended session for two PAD flows?

(0) ShareShare
ReportReport
Posted on by 21

Hello,

I have two desktop flows triggered by a cloud one:

  1. The first desktop flow outputs a b64 image captcha code.
  2. Then this is used to send an adaptive card to teams and wait for the user to respond. 
  3. After the user responded, the second flow attaches to the running instance and populates the filed with the user input.

So basically it launches a new Chrome page in the first desktop flow and on the second flow it attaches to it in order to login.

 

Below is a diagram of the flow

SimaC_0-1693992370140.png

The first desktop flow creates a session on the machine, my question is regarding the second flow. 

Does the second flow uses the same session or create another one?

I ran this flow in attended mode and it was successful end-to-end, however when it is in unattended it not working properly as only the first PAD flow is successful .


Error message for the Launch and Attach to Chrome by URL in the second PAD flow action:

 

 

 "code": "WebAutomation.LaunchChromeError",
 "message": "Problem while executing action 'AttachToChromeByUrl'. Failed to assume control of Chrome (communication with browser failed. Make sure add-on is installed). \r\n \r\nMicrosoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Failed to assume control of Chrome (communication with browser failed. Make sure add-on is installed). ---> 

 

 



  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    It's not the same session. The first flow ends the session when it finishes and the next flow starts a new session.

     

    You will need to figure out a different way to do this, in which the entire flow can run as a single desktop flow. You could look into alternatives, such as sending an API request via the Invoke web service action in the desktop flow to a cloud flow, that sends the adaptive card, then maybe making the cloud flow push the text input into a local file that the desktop flow would wait for, or something like that.

     

    -------------------------------------------------------------------------
    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.

  • Sima-C Profile Picture
    21 on at

    Hey, thank you!
    I solved it by using the documentation for the unattended runs.

  • Sima-C Profile Picture
    21 on at

    I'm leaving this in case someone needs it.

    To allow reusing Windows session:

    1. Sign in to Power Automate.

    2. Select Monitor, and then select Machines.

    3. Select the target machine or machine group.

    4. Select Settings in the Command bar.

    5. Enable Reuse sessions for unattended runs.

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