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 / Use one field, parse t...
Power Automate
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!

Categories:
  • Verified answer
    trice602 Profile Picture
    16,679 Super User 2026 Season 2 on at

    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.

     

  • jcole5352 Profile Picture
    58 on at

    @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

     

     

     

  • trice602 Profile Picture
    16,679 Super User 2026 Season 2 on at

    ALWAYS GLAD TO HELP!

     

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard