cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

How to split string from value coming from Microsoft Forms

I'm using Microsoft Forms to communicate with Power Automate. I would like to learn how to split a form field and easily place it into Power Automate.  Below is my visual....

 

split-string.png

 

For the "Create item" section, I have a unique situation for the "Coordinator Email value".  The Microsoft Form value is coming in as...

 

John Dukes - jdukes@company.com

 

...In that format every time.  I want to strip out "John Dukes -" so that all that is properly going into that field is the email address itself.  Can I fix this situation here within my flow for this section? perhaps split away that first part with an expression process?

 

Many thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User II
Super User II

Re: How to split string from value coming from Microsoft Forms

Hi @kensley 

 

It's kind of strange that you get that, but I'll help you work on the formula.

 

Here's an example of Power Automate to simulate the process.

Screenshot 2020-07-22 at 22.41.31.png

 

Here's the result after running: 

Screenshot 2020-07-22 at 22.41.23.png

 

The formula is as follows:

  1. Get the value
  2. Split it based on ' - '
  3. Get the second element of the array created (the email)
split(variables('TEST'),' - ')[1]

 

You just need to replace the "variables('TEST')" by the "Coordinator Email value".

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

View solution in original post

1 REPLY 1
Highlighted
Super User II
Super User II

Re: How to split string from value coming from Microsoft Forms

Hi @kensley 

 

It's kind of strange that you get that, but I'll help you work on the formula.

 

Here's an example of Power Automate to simulate the process.

Screenshot 2020-07-22 at 22.41.31.png

 

Here's the result after running: 

Screenshot 2020-07-22 at 22.41.23.png

 

The formula is as follows:

  1. Get the value
  2. Split it based on ' - '
  3. Get the second element of the array created (the email)
split(variables('TEST'),' - ')[1]

 

You just need to replace the "variables('TEST')" by the "Coordinator Email value".

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Come join us today! Find your favorite faces from the community presenting at the Power Platform Community Conference!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Users online (2,893)