Skip to main content
Ground Control | Tier 1
February 21, 2024
Question

Decode the Url

  • February 21, 2024
  • 1 reply
  • 160 views

Hi All, 

 

I want to decode the URL to plain text, is there a direct command using automation anywhere. 

 

example : 

encoded Url : https://edd.ca.gov/en/about_edd/employer_services_online/

Decoded Url :https%3A%2F%2Fedd.ca.gov%2Fen%2Fabout_edd%2Femployer_services_online%2F

    1 reply

    Navigator | Tier 3
    February 21, 2024

    You can use Run JavaScript action to call required function:
     

    function encodeUri(str) {
    return encodeURI(str);
    }

    function decodeUri(encodedStr) {
    return decodeURI(encodedStr);
    }

     

    https://github.com/A360-Tools | https://botstore.automationanywhere.com/vendor/botdev