cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to fix spaces in URL

Jump to solution

I am have a workflow that is populating my list with a URL to a document library folder.  The issue is, the URL contains spaces and while that gets converted correctly in SharePoint it doesn't when you send an email notification with that link.

 

How do I force the URL to put the necessary % where there are spaces?

 

Found some thread mentioning

 

fn-XmlEncode({Common:WebUrl}/{Common:ListName})

 

But I don't know how this functions or how to set it up.

Labels: (1)
0 Kudos
Reply
3 Replies
Workflow Hero

Re: How to fix spaces in URL

Jump to solution

Hi Scott,

 

You can replace each character with the appropriate value using fn-Replace (Replaces a section of text in a larger string.).

 

Example:

 

Go to: Insert Reference >> Inline Functions >> fn-Replace

 

fn-Replace({Common:WebUrl}," ","%20")

 

Another option would be to use the Regular Expression action to replace a space with %20.

 

Regards,
Shirin

0 Kudos
Reply
Not applicable

Re: How to fix spaces in URL

Jump to solution

Thank you so much!

0 Kudos
Reply
Workflow Hero

Re: How to fix spaces in URL

Jump to solution

I've seen problems with fn-Replace when quotes were used. Consider omitting them:

fn-Replace({Common:WebUrl}, ,%20)

0 Kudos
Reply