Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

JSON storing headers and data in separate lists, how to write them to Excel table?

(1) ShareShare
ReportReport
Posted on by 22
Hi,
 
I am trying to write JSON output to an Excel table. However, instead of key-value pair, the JSON has headers and data in separate lists ("fields" has header and it's properties, and "data" is just data), as showing below. Do you know a way to combine the "fields" (more specific, "label" from "fields") and "data" to a dictionary? Or how to pass un-named data to table using "Add a row into a table" action?
 
Thank you!
 
"fields": [
            {
                "name": "postedDatetime",
                "label": "Posted",
                "cardinality": 1,
                "dataType": "DATETIME",
                "searchable": true,
                "sortable": true,
                "hasRange": true
            },
            {
                "name": "deliveryDate",
                "label": "Delivery Date",
                "cardinality": 2,
                "dataType": "DATE",
                "searchable": true,
                "sortable": true,
                "hasRange": true
            },...]
 
 
"data": [
            [
                "2024-08-06T12:30:00",
                "2024-08-13",
                "1:00",
                15393,
                2034.09,
                7067.4302,
                1869.28,
                18442.6992,
                10719.9004,
                4612.2002,
                1610.14,
                61748.74,
                "E",
                true,
                false
            ],
            [
                "2024-08-06T12:30:00",
                "2024-08-13",
                "10:00",
                16217.7002,
                2178.3999,
                7131.7998,
                1912.8199,
                18689.0996,
                10377.9004,
                4660.4199,
                1626.77,
                62794.9097,
                "E",
                true,
                false
            ],...]
  • Verified answer
    WZ-06081909-0 Profile Picture
    22 on at
    JSON storing headers and data in separate lists, how to write them to Excel table?
    It was figured out here:

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492