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 Automate
Answered

Parse Json

(0) ShareShare
ReportReport
Posted on by 2
I am working on a data request flow with document attachement. I have a flow condition with a JSON Parse to be able to recognise if a document is uploaded. however I have not been able to get the parse payload to work. whenever I generate it, it always fails , This is my sample payload :
 
 [{\"name\":\"FSS Data_Akua Obeng 2.xlsx\",\"link\":\"https://obeneinc-my.sharepoint.com/personal/akuaobeng_obeneinc_com/_layouts/15/Doc.aspx?sourcedoc=%7B593E9F34-83A0-44BB-A7B8-7439ADF5EA9B%7D&file=FSS%20Data_Akua%20Obeng%202.xlsx&action=default&mobileredirect=true\",\"id\":\"013A62YHZUT47FTIEDXNCKPODUHGW7L2U3\",\"type\":null,\"size\":10963,\"referenceId\":\"013A62YHZZFKXHOZ4WPJAIJNM6NJBGOIAW\",\"driveId\":\"b!jiDeHrvbqkqBh0pVbFw6aSO9vUCYieVLhyQh29nIzsBGaGVcPFAVQpkLD0Qc8BFy\",\"status\":1,\"uploadSessionUrl\":null}]
 
This is not able to generate the schema or it generates the wrong schema and the flow fails. 
 
 
 
Can someone please give some ideas?   Thank you
Categories:
I have the same question (0)
  • Verified answer
    Ellis Karim Profile Picture
    11,939 Super User 2026 Season 1 on at
    (1) Add a compose action
     
    (2) Enter the expression as shown below for your file upload question (in your case it's Please Upload....)
     
    (3) Examine the run time output. This is the content you can use for the ParseJSON sample payload.
     
    This is the output I get when using your sample data:
     
     
    [
        {
            "name": "FSS Data_Akua Obeng 2.xlsx",
            "link": "https://obeneinc-my.sharepoint.com/personal/akuaobeng_obeneinc_com/_layouts/15/Doc.aspx?sourcedoc=%7B593E9F34-83A0-44BB-A7B8-7439ADF5EA9B%7D&file=FSS%20Data_Akua%20Obeng%202.xlsx&action=default&mobileredirect=true",
            "id": "013A62YHZUT47FTIEDXNCKPODUHGW7L2U3",
            "type": null,
            "size": 10963,
            "referenceId": "013A62YHZZFKXHOZ4WPJAIJNM6NJBGOIAW",
            "driveId": "b!jiDeHrvbqkqBh0pVbFw6aSO9vUCYieVLhyQh29nIzsBGaGVcPFAVQpkLD0Qc8BFy",
            "status": 1,
            "uploadSessionUrl": null
        }
    ]

    ​​​​​​​Here is a schema I generated, with some minor edits - "type" and "uploadSessionUrl" can either be a "string" or "null" and are not required since the values can be null.
    {
        "type": "array",
        "items": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string"
                },
                "link": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "type": {
                    "type": ["string", "null"]
                },
                "size": {
                    "type": "integer"
                },
                "referenceId": {
                    "type": "string"
                },
                "driveId": {
                    "type": "string"
                },
                "status": {
                    "type": "integer"
                },
                "uploadSessionUrl": {
                    "type": ["string", "null"]
                }
            },
            "required": [
                "name",
                "link",
                "id",
                "size",
                "referenceId",
                "driveId",
                "status"
            ]
        }
    }
    


     
    Ellis Karim
  • Suggested answer
    CU17012354-0 Profile Picture
    2 on at
    Hello Karim, Thank you so much your code worked like magic, that was awesome , I am grateful. 

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
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard