Skip to main content

Notifications

Power Automate - Power Automate Desktop
Answered

Initial URL does not get encoded

(0) ShareShare
ReportReport
Posted on by 143

My flow was working without an error before i updated pad to the latest version.

 

I was passing a url in "Launch new chrome" action, like this 

"https://xxxxxx.com/custom/service/webapi/rest.php?input_type=JSON&response_type=JSON&method=login&rest_data={"user_auth":{"user_name":"xxxx","password":"xxxx"}}"

Now, when the chrome window opens up, the url does not have any double quote (") characters and my url is not working. 

 

  • Agnius Bartninkas Profile Picture
    Agnius Bartninkas 10,045 on at
    Re: Initial URL does not get encoded

    They might fix it, if they get people raising bug reports to their support. I generally always use Run application in my flows to launch a browser, because this works better than launching a new browser. The Launch new Chrome action tends to fail sometimes if the extension doesn't load properly. But Run application never fails because of 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.

  • vkama Profile Picture
    vkama 143 on at
    Re: Initial URL does not get encoded

    I used Run Application and passed the URL with encoded characters and it worked. If i don't encode the characters is not working but anyway, problem is solved. 

     

    Do you think that MS is going to fix that? I'm asking because it worked in previous versions. 

     

    Thanks a lot for your help.

  • Verified answer
    Agnius Bartninkas Profile Picture
    Agnius Bartninkas 10,045 on at
    Re: Initial URL does not get encoded

    Have you tried using Run application to run Chrome and passing the URL as the parameter? You can then use Launch new Chrome afterwards, but make it attach to an already running instance, instead of launching a new one. This way you will get a browser instance and still be able to proceed with further UI actions.

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

  • vkama Profile Picture
    vkama 143 on at
    Re: Initial URL does not get encoded

    Thanks for the answer.

     

    I already tried that but i got the same results. The weird thing is that other characters like ' or space are getting encoded. 

  • Agnius Bartninkas Profile Picture
    Agnius Bartninkas 10,045 on at
    Re: Initial URL does not get encoded

    To encode the double quote symbol, you should replace it with %22

    That's the standard procedure. However, PAD will throw a syntax error at that because it uses % for variable notation. You need to escape it by doing %% instead of %. So, the correct way would be to replace every double quote symbol with %%22

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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard