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 / Trouble getting values...
Power Automate
Answered

Trouble getting values from pairs when iterating through an array of objects

(0) ShareShare
ReportReport
Posted on by 166

I have an object that instantiated in Flow called emailReplyObect that resembles the following:

 

{
 "values": [
 {
 "key1": "value1"
 },
 {
 "key2": "value2"
 },
 {
 "key3": "value3"
 },
 {
 "key4": "value4"
 },
 {
 "key5": "value5"
 },
 {
 "key6": "value6"
 },
 {
 "key7": "value7"
 },
 {
 "key8": "value8"
 },
 {
 "key9": "value9"
 },
 {
 "key10": "value10"
 }
 ]
}

I need the value of the "keyn" and the value of "valuen".

 

I also need to iterate through them to get the value of each. The "keyn" is used for additional logic else where in the Flow which is why I need the value of "keyn". 

To iterate through it, I'm assigned the arry of objects "values" to an array:

Capture.PNG

Then I iterate through that array:

Capture1.PNG

This iterates through each object in the array:

Capture2.PNG

Here is the layout of the entire Flow:

Capture3.PNG

I tried using parseJson, but it just outputs:

Capture4.PNG

Schema is either defined manually or automatically. Same result.

The problem is I'm not sure how to get the values of "keyn" and the values of "valuen". Suggestions?

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,022 Most Valuable Professional on at

    There really is no value for Keyn.  Key# is the index that will get you the value of the item in the array.

    values[key#]

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 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard