web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get the value of a fie...
Power Automate
Unanswered

Get the value of a field from an object inside of an array

(0) ShareShare
ReportReport
Posted on by 31

I created a Flow where I'm using an HTTP request to query a data table. I'm getting a response back inside of a compose function, but I'm wondering how I get the value of a field by it's key?

 

So my compose is grabbing the Body of the HTTP request as an input, but I want to grab the value of the key "18" (637) inside of the "data" array.

 

Here's my output from the Compose function:

 

 

{
 "data": [
 {
 "3": {
 "value": 31
 },
 "9": {
 "value": "AAMkADQ4YTg5NmQ2LWE0NjQtNGFiZC1iNDMzLTVmMGUzYzVjNzhlYwBGAAAAAADYf4WxPqVyRZ2Tfm0B217jBwADr7S2HTh5RatNQgK7SDFcAAAAAAEMAAADr7S2HTh5RatNQgK7SDFcAABRtMUpAAA="
 },
 "18": {
 "value": 637
 }
 }
 ],
 "fields": [
 {
 "id": 3,
 "label": "Record ID#",
 "type": "recordid"
 },
 {
 "id": 9,
 "label": "Email Message ID Field",
 "type": "text"
 },
 {
 "id": 18,
 "label": "Related Ticket",
 "type": "numeric"
 }
 ],
 "metadata": {
 "numFields": 3,
 "numRecords": 1,
 "skip": 0,
 "totalRecords": 1
 }
}

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    PowerBack19 Profile Picture
    679 on at

    @arodriguez107 - You can use a "Parse JSON" action after the HTTP request to get the Key/Value pairs. You can then use a "Filter Array" action to narrow down the results.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard