cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

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
Super User III
Super User III

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.

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 

Super User III
Super User III

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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (20,307)