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 / Converting json with n...
Power Automate
Unanswered

Converting json with nestead arrays into csv table

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I am fairly new to Power Automate and hoping someone can help with this problem that has been driving me nuts.

 

I have a JSON object that I would like to turn into a CSV table. I have included a simplified exampled of the JSON structure but the final JSON could have hundreds of thousands of rows of data and 50 + columns.

 

As you can see from the JSON below, the 'headers' key is an array of values that are my column headers.

 

The data value is an array of arrays. Each child array represents a single row of data:

 

{
  "header": [
    "'Test Table'[Column_1]",
    "'Test Table'[Column_2]",
    "'Test Table'[Column_3]"
  ]
  "data": [
    [
      1,
      "Foo",
      "Bar"
    ],
    [
      2,
      "Hello",
      "World"
    ]
  ]
}
 
So, my aim is to transform the above into the following table:
 
Column_1Column_2Column_3
1FooBar
2HelloWorlds

 

As I said, the actual data I will feed into this flow could be hundreds of thousands of rows long and 50+ columns wide so I am trying to avoid any solution that requires me to hard code any values or any name mappings (as a select data operation does when I pass in anything that isn't an array of objects).

 

I'd also ideally like to avoid any looping via an apply to each (although this is based on my admittedly limited understanding of the speed or Power Automate).

Any help is massively appreciated.

 

Thank you

Categories:
I have the same question (0)
  • Andrew_J Profile Picture
    1,962 Moderator on at

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 463 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 427 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard