cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Split text

Hi all, I need some help in splitting out some text values.  From the MS Form they are formatted like this

 

["Monitor x 2","Keyboard","Mouse"]

 

I need just the text and not the [ " , ]  Also is it possible to format the results into a HTML table for an email?

 

Thanks

 

Mike

3 REPLIES 3
Paulie78
Super User
Super User

They are formatted as an array, which is how they should be. What is your objective? (other than to remove them out of the array). When you access the elements of the array, they will not have the array formatting on them.

Anonymous
Not applicable

No array is present in the flow.  The results come from the standard Form connector get response results and recorded in a SharePoint list.  What I want and need is for each item listed to be split out on separate lines instead of item1,item2 I need......

 

item 1

item 2 

Paulie78
Super User
Super User

You misunderstand me...

 

["Monitor x 2","Keyboard","Mouse"]

 

IS an array, that is what a JSON array looks like. Which is why I asked what your desired output is, so I can help you get to that.

For example, you could use a join expression on that array depending on what separator you used it would create different output, like:

 

Monitor x 2, Keyboard, Mouse or

Monitor x 2;Keyboard;Mouse

 

In answer to your HTML table question. It can almost go into a table, you need to run it through a select action to give it a column name. The HTML action wants an array of objects, not an array of values, which is what you have right now.

It would be best if you just posted a screenshot of your flow and then we can give you some pointers where to go next.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,916)