Skip to main content

Notifications

Copilot Studio - General
Unanswered

Convert string spaces into %20%

(1) ShareShare
ReportReport
Posted on by 6

Dear Team,

 

I would like PVA to speed up support work by providing a direct link to multiple web sites (KB, Jira, Bugzilla, etc).
I have the search strings with the needed parameters but once a user provide an error string and save it as variable it is breaking the link due to the spaces.

See an example:

raznas_0-1641376304169.png

I have did some research and can see recommendations of using 'replace(variables('test'),' ','')" from power automate but could not make it work...

Can anyone provide another solution to the above (converting spaces to %20%) or a step by step guide to achieve that?

Any help will be greatly appreciated.

 

Thank you,

Shlomi

Categories:
  • renatoromao Profile Picture
    renatoromao 6,819 on at
    Re: Convert string spaces into %20%

    @raznas ,

     

    Yes, via Power Automate. 

    If you are using only PVA, you have a limitation to generating a link as we are doing.

  • raznas Profile Picture
    raznas 6 on at
    Re: Convert string spaces into %20%

    Thanks @renatoromao 

     

    Does it has to go via Power Automate?  Can't I use it directly at the message section at PVA?

     

    Kind regards,

    Shlomi

     

  • renatoromao Profile Picture
    renatoromao 6,819 on at
    Re: Convert string spaces into %20%

     

    You can copy/paste the sentence below within your output in the Flow:

    [Open here](https://www.support.com/search/en-us#q=@{variables('test')}) 

     

    You will see your variable added to the Power Automate action.

     

    pva-link-markdown.png

    Hi @raznas ,

  • raznas Profile Picture
    raznas 6 on at
    Re: Convert string spaces into %20%

    Thanks   

    My problem is that the text is coming as variable:
    https://www.support.com/search/en-us#q={x}bot.ErrMessage

     

    I cannot add the variable into the link.

    Any suggestion on that?

     

    Thanks again,

    Shlomi

    @renatoromao

  • renatoromao Profile Picture
    renatoromao 6,819 on at
    Re: Convert string spaces into %20%

    Hi @raznas ,

     

    We were doing a similar discussion here: Re: Bug with copy and Paste links - Power Platform Community (microsoft.com)

    But in your case, I recommend you to use Markdown within the Power Automate conversation:

    Use markdown to format Power Automate approvals - Power Automate | Microsoft Docs

     

    HTTP and HTTPS URLs are automatically formatted as links.

    You can set text hyperlinks for your URL using the standard markdown link syntax:

    Markdown
    [Link Text](Link URL)
    

    Example:

    Markdown
    [Power Automate](https://flow.microsoft.com)
    

    Result:
    Power Automate

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,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard