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

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:
I have the same question (0)
  • Verified answer
    trice602 Profile Picture
    15,402 Super User 2025 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
    15,402 Super User 2025 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

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard