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 / Building a structured ...
Power Automate
Unanswered

Building a structured JSON file from SharePoint list

(0) ShareShare
ReportReport
Posted on by 8

I have a SharePoint list - witch I want to use to build a JSON file, formatted after a certain schema. HOW!

Getting the data isn't the problem (Get Item) , but how do I format the output according to my schema?

 

Ex:

I hava a list with 7 columns. I want to build a JSON file/ data-file with the following structure/schema:

fredrikWick_0-1695033453140.png

(Also see below)

 

After using Get Item - I can adress the data, I used: Select Row - But this didn't solve the formatting...

 

How do I set this up - to place the data in the right place - and format?

 

[      
      {
            "template": "template.pptx"
            "data": [
                  {
                        "name": Chart1",
                        "table": [                   (Number of rows in this array will differ)
                              [{"string": "ProjectName_1"}, {"date": "2023-05-01"}, {"date": "2023-06-01"}, {"date": "2023-07-01"}],                   (Number of objects in this array is constant.
                              [{"string": "ProjectName_2"}, {"date": "2024-05-01"}, {"date": "2024-06-01"}, {"date": "2024-07-01"}],
                              ..
                              ...
                              .....
                        ]
                  },
                  {
                        "name": Chart2",
                        "table": [                   (Number of rows in this array will differ)
                              [{"string": "ProjectName_1"}, {"date": "2023-05-01"}, {"string": "Sven"}, {string": "Gunnar"}],                   (Number of objects in this array is constant.
                              [{"string": "ProjectName_2"}, {"date": "2023-05-01"}, {"string": "Ella"}, {"string": "Anna"}],
                              ..
                              ...
                              .....
                        ]
                  }
                 ]
            }
]
Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,570 Super User 2026 Season 1 on at

    What is the raw output of "Get Item" ?

  • fredrikWick Profile Picture
    8 on at

    Hi!

     

    The raw output is:

    {
           "statusCode": 200,
           "headers": {
           "Transfer-Encoding": "chunked",
           ....

           ....

           ..
           },
           "body": {
                  "value": [
                  {
                         "@odata.etag": "\"2\"",
                         "ItemInternalId": "1",
                         "ID": 1,
                         "Title": "Project_1",
                         "field_1": "Client_1",
                         "field_2": "Scope_1",

                         ...

                         ...

                  },

                  {

                         "@odata.etag": "\"1\"",
                         "ItemInternalId": "2",
                         "ID": 2,
                         "Title": "Project_2",
                         "field_1": "Client_2",
                         "field_2": "Scope_2",

                         ...

                         ...

                  }

             ]

           }

    }

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 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard