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 / Replace space with und...
Power Automate
Unanswered

Replace space with underscore only on the first space.

(1) ShareShare
ReportReport
Posted on by 103

Hi!

I have users whose first name and last name are one word, and there are also users whose first name is one word and the last name is two words:

Jelle van Assen
Marlijn Smink
Arnout van Rijswijk

I want the space to be replaced with an underscore only on the first space.
For example:
Jelle_van Assen
Marlijn_Smink
Arnout_van Rijswijk

Please tell me how can this be implemented?

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @xvzms 

     

    Follow the below:

     

    image.png

     

    The expression I used is as follows:

     

    concat(first(split(outputs('Compose'),' ')),'_',trim(last(split(outputs('Compose'),first(split(outputs('Compose'),' '))))))
     
    Thanks
  • Verified answer
    xvzms Profile Picture
    103 on at

    @abm Thank you very much!
    You are the best!

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 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard