web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Process Mining
Answered

Desktop variable escaping the URL Encoded Percent Characters .i.e. %2F aka / (Forward Slash)

(0) ShareShare
ReportReport
Posted on by 38

I was working with variables and found that it did not like URL Encoded Percent Characters .i.e. %2F aka / (Forward Slash) when I copied and pasted it, I am assuming this is b/c it is the wrapper for the variable in the Flow Designer, it was easy for me to fix (This time) replaced the characters with ascii values, BUT, was wondering if there is a way to escape the percent sign (and other special characters as needed) as in other languages like C# or JavaScript?

Use case that comes to mind is dynamic content, how do you scan and 'replace' the special characters and escape them???

As always, any and all help would be greatly appreciated, links, references, blogs, etc. are certainly welcome (Especially on this topic) and know I appreciate those who contribute and help guide me.


Stay safe.
Best Regards.
SG.

Categories:
I have the same question (0)
  • Verified answer
    fraenK Profile Picture
    2,125 on at
    Re: Desktop variable escaping the URL Encoded Percent Characters .i.e. %2F aka / (Forward Slash)

    Usage and escaping is described here:

    https://docs.microsoft.com/en-us/power-automate/desktop-flows/variable-manipulation

     

    Occasionally, the percentage sign should be used as a simple character, instead of denoting a calculation. In those cases, it should be escaped using another percentage character (%%).

     

    Replace text: https://docs.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/text#replace

  • nickmanny Profile Picture
    18 on at
    Re: Desktop variable escaping the URL Encoded Percent Characters .i.e. %2F aka / (Forward Slash)

    An escape character enables you to output characters you wouldn't normally be able to, usually because the browser will interpret it differently to what you intended. The following code shows that the simple and easy method to escape HTML special chars in JavaScript.

     

    var escape = document.createElement('textarea');
    function escapeHTML(html) {
    escape.textContent = html;
    return escape.innerHTML;
    }

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 797 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
developerAJ Profile Picture

developerAJ 319

Last 30 days Overall leaderboard