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 / Launch Chrome Browser ...
Power Automate
Answered

Launch Chrome Browser with different profiles

(0) ShareShare
ReportReport
Posted on by 18

Hi community

 

I run a lot of finance automations using PAD with Business Central. A few of the areas of the business use differing tenants. 

 

I basically need to launch a browser and login to those different tenants - one easy way of doing this is by having more than one chrome profile - but PAD doesn't seem to support launching different browser profiles (unless I am mistaken?)

 

So I suppose my questions are

 

1.Is it possible to choose a specific chrome profile on launching a browser?

2.If not is there another way of selecting a different MS login when using different tenants of online services?

 

Any help would be appreciated

 

Thanks

 

TC

I have the same question (0)
  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    @tezza192 

    PAD launches the browser with the login you are in. However, if you want to switch to different profiles you use sendkeys method using arrow keys/enter keys etc. This needs to planned properly using delay actions so that it opens desired profile. 
    or

    Try passing the URL: URL+“--profile-directory=PAD”(check it) when opening the browser

     

    hope it helps!!

     

    Thanks

    Ankesh

     

     

  • tezza192 Profile Picture
    18 on at

    I have tried this - it doesnt work - i get no option to change tenant

     

    Is it possible to launch browser with a selected Chrome profile?

  • Verified answer
    VJR Profile Picture
    7,635 on at

    Try this

    - Use Run application with the below command using the right parameters

    chrome.exe --profile-directory="profile name"

    - Then use the Attach option of Launch Chrome to attach to the above opened Chrome instance

    VJR_0-1658285399869.png

     

  • tezza192 Profile Picture
    18 on at

    Thanks - this works great

  • neerajverma7876 Profile Picture
    6 on at

    Could you please explain URL: URL+“--profile-directory=PAD” ?? I want to launch "Profile 1" for "google.com" directly?

  • AirPirat Profile Picture
    13 on at

    Hello, I have a similar situation, I need to run different chrome profiles, but this solution does not work for me, after I try to join a running instance of chrome, I get the error "Could not get control of Chrome (browser communication error; make sure the add-in is installed)."

  • zkcid Profile Picture
    8 on at

    Try this

    LOOP LoopIndex FROM 1 TO 50 STEP 1
     @@statistics_Input_Number: '1'
    @@statistics_Action_Submit: '1'
    Display.ShowCustomDialog CardTemplateJson: '''{
     \"type\": \"AdaptiveCard\",
     \"version\": \"1.4\",
     \"id\": \"AdaptiveCard\",
     \"body\": [
     {
     \"type\": \"Input.Number\",
     \"id\": \"profil\",
     \"value\": 1.0,
     \"label\": \"${profil_Label}\"
     }
     ],
     \"actions\": [
     {
     \"type\": \"Action.Submit\",
     \"id\": \"Submit\",
     \"title\": \"${Submit_Title}\"
     }
     ]
    }''' CustomFormData=> FormProfil ButtonPressed=> ButtonPressedProfil2 @profil_Label: $'''No Profil''' @Submit_Title: $'''Ok'''
     SET BrowserVar TO $'''\"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\" --profile-directory=\"Profile %FormProfil['profil']%\"'''
     System.RunApplication.RunApplication ApplicationPath: $'''C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe''' CommandLineArguments: $'''www.google.com --profile-directory=\"Profile %FormProfil['profil']%\"''' WindowStyle: System.ProcessWindowStyle.Maximized ProcessId=> AppProcessId
     WebAutomation.LaunchChrome.AttachToChromeByUrl TabUrl: $'''https://www.google.com/''' AttachTimeout: 5 BrowserInstance=> Browser
     Display.ShowMessageDialog.ShowMessage Message: $'''akun %FormProfil['profil']%''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed
     WebAutomation.CloseWebBrowser BrowserInstance: Browser
    END

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

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 241 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 179

#3
Haque Profile Picture

Haque 159

Last 30 days Overall leaderboard