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 / Separating a Display N...
Power Automate
Unanswered

Separating a Display Name that appears as a String without commas.

(0) ShareShare
ReportReport
Posted on by 234

Any idea if I can use a data tool to separate or split the "display name" content into 2, and use only the first name.  

For example:  I would like to use first name only and separate the "displayname":  "bob smith"  to only "bob" and use "bob" later on in the flow with a dynamic content component.  

ninjaryder1st_0-1616630357551.png

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,828 Most Valuable Professional on at

    Hi @ninjaryder1st,

     

    Yes, you should be able to use a split function and use the space character for the split. Use the [0] index position to get the first part.

     

    Below is an example in a couple of compose actions. 

    split(outputs('Compose'), ' ')[0]

     

    split_onspace.png

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @ninjaryder1st 

    Did you try to split by space

    split(displayName,' ')[0]

     

  • ninjaryder1st Profile Picture
    234 on at

    Thanks, I did learn about split expressions, but my issue is that when I pull out Display Name for "compose" its places an "apply to each" function for DisplayName, and I understand that apply to each cannot be used for Initialize Variable commands.   

     

    ninjaryder1st_0-1616631370120.png

     

    and composing w/ split expression yields this, w/o a name : 

     

    ninjaryder1st_1-1616631506224.png

     

  • ninjaryder1st Profile Picture
    234 on at

    Ok, I forgot the Compose 1 before the Compose 2 with Split expression.  That works and I've split the name, but its not allowing me to recover the first name output from the split so I can place it later in the flow under HTML format for "send and email (V2)"..

    ninjaryder1st_2-1616632221245.png

    ninjaryder1st_3-1616632349365.png

     

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @ninjaryder1st can you add screens how your flow is structured?

  • ninjaryder1st Profile Picture
    234 on at

    Hi @Mira_Ghaly ,

     

    Sure!  

    ninjaryder1st_0-1616677954028.png

    ninjaryder1st_1-1616677999143.png

    ninjaryder1st_2-1616678030817.png

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard