Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Use one field, parse text from it two ways and then populate to two fields

(1) ShareShare
ReportReport
Posted on by 58

Hello

I have a flow that is taking Microsoft Forms responses and creating a SharePoint List item. In the forms responses I have ONE field that contains two pieces of information that I want parsed. It's formatted like this:

Doe, Jane - janedoe@xxxxxxxx.edu 

Form field is called Course Director 1

 

This particular one field contains two pieces of information in one string. Is it possible to add dynamic content or use an expression to parse out the text so that I can put the name in one field and the email in another for when it goes over to the SharePoint list. See screen shot.

jcole5352_0-1692732099935.png

THANKS IN ADVANCE!

  • trice602 Profile Picture
    13,813 Super User 2025 Season 1 on at
    Re: Use one field, parse text from it two ways and then populate to two fields

    ALWAYS GLAD TO HELP!

     

     

  • jcole5352 Profile Picture
    58 on at
    Re: Use one field, parse text from it two ways and then populate to two fields

    @trice602 

    OMG thank you for the amazingly fast response!! AND it worked!

     

    However, Since I have to do this for multiple fields, I'm not using the Compose, I'm just calling to the output of the field from my 'get response details' directly in the trim and split string.

    Like this: 

    jcole5352_2-1692733555379.png

     

    Because I didn't know if I could have multiple Compose steps. It seems to work so hopefully it doesn't cause me problems down the road. 

     

    Anyway, I think I'm rocking and rolling now! Thanks so much!

    jcole5352_1-1692733518429.png

     

     

     

  • Verified answer
    trice602 Profile Picture
    13,813 Super User 2025 Season 1 on at
    Re: Use one field, parse text from it two ways and then populate to two fields

    Hi @jcole5352 ,

     

    Here are the expressions and results:

     

    trice602_0-1692732675067.png

     

    trim(split(variables('test1'), '-')[0])
     
    trice602_1-1692732721350.png

     

    split(variables('test1'), ' ')[sub(length(split(variables('test1'), ' ')), 1)]
     
    trice602_2-1692732753427.png

     

    Next you would use these dynamic values in your Create Item.

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1