web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Possible to create nes...
Power Automate
Suggested Answer

Possible to create nested arrays? Array of arrays?

(1) ShareShare
ReportReport
Posted on by 61
I'm trying to transpose an HTML table by splitting it into rows and columns, like this:
  1. 'Get items' action with a filter, the amount of items fetched can be anywhere between 1-4.
  2. 'Create HTML table' action.
  3. Turn HTML table into string and erasing/replacing every tag that is not </tr> or </td>.
  4.  'Split' string with '</tr>' delimiter, resulting in an array of rows.
  5.  'Apply to each' and loop thorugh the array of rows splitting each element with '</td>' delimiter, resulting in inner arrays of columns.
I thought I could then 'Append to array variable' into an array of arrays so I can later figure how to loop through it an recompose the HTML table. Turns out Power Automate doesn't handle nested arrays?

Is there any way I can store the inner arrays into the outer array? I can't join them or use union because I loose the table original dimensions.

Or better yet: is there a simpler way yo transpose an HTML table without using a third-party app?
Categories:
I have the same question (0)
  • Suggested answer
    ivan_apps Profile Picture
    2,189 Moderator on at
    You can use an append to a string variable and add a json string from your extract. You’d be building a long string but then you can use the ParseJSON action to recreate the object/array that you will iterate.
  • Chriddle Profile Picture
    8,672 Super User 2026 Season 1 on at
    I'm not sure if I understood that, is that what you're looking for?

    Otherwise an example would help ;)

    In general, converting HTML with string manipulation is tedious and error-prone and XML could be a way out.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard