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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard