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 / How to go from a JSON ...
Power Automate
Answered

How to go from a JSON object to being able to take action on the data contained within

(0) ShareShare
ReportReport
Posted on by 5

I'm pretty new to Logic Apps and JSON, so there's a knowledge gap here I'm struggling to overcome.

 

In my Logic App, I am making an HTTP request to Graph and receiving back data in the following format (odata.count is variable):

{
"@odata.context": "https://graph.microsoft.com/v1.0/[...]",
"@odata.count": 2,
"value": [
{
"property1": "a",
"property2": "b",
"property3": "c"
},
{
"property1": "f",
"property2": "g",
"property3": "h"
}
]
}

 

How do I get from this to being able to do actions like "for each item where property1 is x, do an action with the value of property2"? I imagine it's some combination of "Parse JSON" and other Data Operations, but I'm having issues figuring out what I need to do. Thanks in advance for your help!

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    on at

    Hi , @SconeBling 

    According to your description, do you mean you want to loop your "value" array and then judge the property1 is x, then use the property2 data.

    This is my test flow, you can refer to , wen can use the item()?['property2'] to get the "property2" data in each loop

    vyueyunmsft_0-1714957922908.png

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

     

     

     

     

  • SconeBling Profile Picture
    5 on at

    Thank you so much for your help Paimon. That solved the issue I was having!

     

    (I had to ignore the "invalid formula" message, but it accepted the formula the second time I entered it.)

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard