Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Parsing an array of arrays....

(0) ShareShare
ReportReport
Posted on by 802

Hi, 

 

I need a bit of help please. 

 

I have a flow whereby I need to parse a JSON in order to get the values within the "values" element of the JSON. 

 

The values part is an array of arrays, so I am then trying to loop through each object in here to update Dataverse.

 

However, before I get this far, I am setting a variable to ensure that I am getting the correct list of objects for values. Every time I run this, however, the output is empty/null. But there is data in there. What could I be doing wrong?

 

What would the correct output of the Parse JSON command be in order for me to see the items within 'values'?

 

{
 "type": "object",
 "properties": {
 "statusCode": {
 "type": "integer"
 },
 "headers": {
 "type": "object",
 "properties": {
 "Transfer-Encoding": {
 "type": "string"
 },
 "Vary": {
 "type": "string"
 },
 "Strict-Transport-Security": {
 "type": "string"
 },
 "request-id": {
 "type": "string"
 },
 "client-request-id": {
 "type": "string"
 },
 "x-ms-ags-diagnostic": {
 "type": "string"
 },
 "OData-Version": {
 "type": "string"
 },
 "Timing-Allow-Origin": {
 "type": "string"
 },
 "x-ms-apihub-cached-response": {
 "type": "string"
 },
 "x-ms-apihub-obo": {
 "type": "string"
 },
 "Cache-Control": {
 "type": "string"
 },
 "Date": {
 "type": "string"
 },
 "Content-Type": {
 "type": "string"
 },
 "Content-Length": {
 "type": "string"
 }
 }
 },
 "body": {
 "type": "object",
 "properties": {
 "@@odata.context": {
 "type": "string"
 },
 "@@odata.type": {
 "type": "string"
 },
 "@@odata.id": {
 "type": "string"
 },
 "address": {
 "type": "string"
 },
 "addressLocal": {
 "type": "string"
 },
 "columnCount": {
 "type": "integer"
 },
 "cellCount": {
 "type": "integer"
 },
 "columnHidden": {
 "type": "boolean"
 },
 "rowHidden": {
 "type": "boolean"
 },
 "numberFormat": {
 "type": "array",
 "items": {
 "type": "array",
 "items": {
 "type": "string"
 }
 }
 },
 "columnIndex": {
 "type": "integer"
 },
 "text": {
 "type": "array",
 "items": {
 "type": "array",
 "items": {
 "type": "string"
 }
 }
 },
 "formulas": {
 "type": "array",
 "items": {
 "type": "array",
 "items": {
 "type": "string"
 }
 }
 },
 "formulasLocal": {
 "type": "array",
 "items": {
 "type": "array",
 "items": {
 "type": "string"
 }
 }
 },
 "formulasR1C1": {
 "type": "array",
 "items": {
 "type": "array",
 "items": {
 "type": "string"
 }
 }
 },
 "hidden": {
 "type": "boolean"
 },
 "rowCount": {
 "type": "integer"
 },
 "rowIndex": {
 "type": "integer"
 },
 "valueTypes": {
 "type": "array",
 "items": {
 "type": "array",
 "items": {
 "type": "string"
 }
 }
 },
 "values": {
 "type": "array",
 "items": {
 "type": "array",
 "items": {
 "type": "string"
 }
 }
 }
 }
 }
 }
}

 Thanks

K.

  • eliotcole Profile Picture
    4,243 Super User 2025 Season 1 on at
    Re: Parsing an array of arrays....

    Hi, @Kosenurm, I had thought we'd covered this over on the previous thread, mate.

     

    I think ... first of all ... that your Parse JSON action has the wrong schema set to it. Perform the previously discussed action on a file that you know has some data on the pages, and then paste the returned JSON into the schema builder.

     

    However ... I would also advise you to do like I'd mentioned there ... instead of using the parse JSON, use a simple call directly to the values field.

    deletable.jpg

     

  • MaleselaR Profile Picture
    83 on at
    Re: Parsing an array of arrays....

    Hi @Kosenurm 

    I notice that "values" isn't the only array of arrays so I assume you can't access those either. If you want to "use/extract" every value is to use 2 nested apply to each actions, or if you know which element in both arrays you want to access you could use something like variables('variable name')[body][values][0][1] with "0" and "1" being the array indices

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June 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 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1