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 Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,492)