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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Remove spaces from string
Power Automate
Answered

Remove spaces from string

(1) ShareShare
ReportReport
Posted on by 32

Hi everyone,

 

I am trying to build a flow and I'd like to remove spaces from a string. It works for me in other flows and I use the same formula in Power Automate. 

 

I've got an example where the surname is divided by a space. 

TimBroeren_1-1720426893384.png

I use the following formula in the Compose action. replace(body('output_surname'),' ',''). What I expect to see is that "Sur Name" becomes "SurName". When the testflow has run, I check the input if the example above is expected. But the input value is already "SurName". While in fact it's not. When the following action is to add a row to Excel. The surname-value gives "Sur Name". 

TimBroeren_2-1720427005597.png

 

Can you guys help? Why is the input "SurName", while it's in fact "Sur Name".

 

I look forward to your replies.

 

 

 

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    @TimBroeren - Is the response from a MS Forms? and are you trying to remove the space from output of ParseJSON output. As you mentioned something it is working in another Flow instance, so something might be different. 

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

  • TimBroeren Profile Picture
    32 on at

    @CFernandes It's a response from a MS Forms and it's a direct output from this Form.

  • Verified answer
    TimBroeren Profile Picture
    32 on at

    I created a variable first and after I created this variable I composed this variable. My problem is solved.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard