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 / Trying to extract list...
Power Automate
Unanswered

Trying to extract list from nested JSON arrays

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have the below JSON response from an API call:

{"result":
[
{"account":
{"link":"https://example.com","value":"12345678"}
},
{"account":
{"link":"https://example.com","value":"87654321"}
}
]
}

I'm trying to use power automate to retrieve a list of all the "value"s using a Select function.

 

I have created an array and added the JSON to it and using the below in the select:

 

first(variables('test1'))?['result']?[0]?['account']?['value']
 
However, this creates a 1 item list/ only selects the first value. 
Can anyone please help and tell me where I'm going wrong?
 
2021-02-04 17_00_54-Window.png
 
 

 

 

Categories:
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @SamPhillips ,

     

    Check https://www.youtube.com/watch?v=C52brz28poU&list=PLN-cZRQeAiDVQ-6ZWGr43yyTcpu6mUgrR&index=3 for JSON parsing.

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

    Thanks,
    Reza Dorrani, MVP
    YouTube
    Twitter

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello, Thanks for the reply.

     

    I have watched the video and whilst educational, can't seem to find my use case in it.

     

    If i use the below i get error: "Array elements can only be selected using an integer index"

     

    first(variables('test1'))?['result']?['account']?['value']

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 349 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard