Notifications
Announcements
How to I trim space which in the middle of my hyperlink I had used Trim() and Trim Ends() but my problem is I am getting my hyperlink in my email from PowerApps and its having space in the middle of the link. Substitute() is not working.
Hello,
try the following:
Substitute(YourText," ","")
If its a url you might need to replace the spaces with %20
it is a URL how and where should i add %20 can you share it. i had given an picture of my power apps
Usually URLS replace spaces with %20, so you could do:
Substitute(YourText," ","%20")
Thanks it worked 🙂 and is their any way if i can add & instead of %20
If the url points to something specific you can't change it, its the way URLS are read. In some cases you can use "+" instead of "%20", not sure in this case.
@B8 - Whilst substitute will work in your case, I would also recommend the use of the EncodeURL function, which is designed for this scenario.
https://learn.microsoft.com/en-gb/power-platform/power-fx/reference/function-encode-decode
EncodeURL(yourHyperlink)
A hyperlink can contain many special characters - not just spaces. EncodeURL takes care of all these special characters.
Did not know that existed, good alternative solution @timl
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 721 Most Valuable Professional
Michael E. Gernaey 320 Super User 2025 Season 2
Power Platform 1919 268