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

Notifications

Announcements

Community site session details

Community site session details

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

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,187 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,436 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard