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

Community site session details

Session Id : B66JVDbqdB3DNmm3jlkGXE
Power Automate - Using Connectors
Unanswered

Queries in a HTTP action

Like (0) ShareShare
ReportReport
Posted on 28 Aug 2022 16:25:05 by 19

I have an API endpoint: https://api.test.com/people which returns hundreds of people in the below format (each person is a separate object in an array named data. I'm wondering how I can set up my HTTP request in Power Automate to pull only John's record, by just using his name (or email). 

 

I tried putting name in the key field and John Doe in the value field, but it didn't work. I'm assuming because it's inside the data array. Any suggestions on how I can pull John's record by using his name or email?

 

Here is a sample of data returned when I make a HTTP get request (I apologize in advance for not formatting this code but my last couple of posts got marked as spam, so I'm going to try it this way)

 

{
"data": [
{
"id": "123456-abcd-98765",
"name": "John Doe",
"emails": [
"johndoe@gmail.com"
]
},
{
"id": "654321-dcba-56789",
"name": "Jane Doe",
"emails": [
"janedoe@gmail.com"
]
}
]
}

I have the same question (0)
  • Kaif_Siddique Profile Picture
    2,104 Super User 2024 Season 1 on 05 Sep 2022 at 20:11:48
    Re: Queries in a HTTP action

    Here is one possible solution.

    Using the shared json data to Compose then filter data based on email(you can use name as well).

    Kaif_Siddique_0-1662407740782.png

    Kaif_Siddique_2-1662408563503.png

    outputs('Compose')['data']@contains(item()['emails'], 'johndoe@gmail.com')

     

    Let me know if any queries.


    If you like my response, please give it a Thumbs Up.
    If this helps, please Accept as solution.


    Regards
    Kaif

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics

Loading complete