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 :
Power Automate - Building Flows
Answered

Get data from JSON

(0) ShareShare
ReportReport
Posted on by 23

I have a flow that gets new posts from Teams. I use triggerBody() to extract the data, and pase this to JSON. So far so, good 🙂
Now I want to get only a few values from this JSON. How do I get the values marked in this JSON?

I have tried things like outputs('Parse_JSON')?['sections']?['facts'] in several different ways, but either the flow fails, or I get a null-value.

Any suggestions?

 

GuttormG_0-1642770950202.png

 

I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,324 Most Valuable Professional on at
    Re: Get data from JSON

    Since Sections and facts are both arrays you'll need to add an index number to reach them directly.  Something like this

    outputs('Parse_JSON')?['sections'][0]?['facts'][0]?['value'] 

     

  • GuttormG Profile Picture
    23 on at
    Re: Get data from JSON

    Ahh, thank you very much! Got almost crazy of all the brackets, question marks and index numbers I couldn't figure out. 
    Also, I had to use body() instead of outputs(). Don't know why, but it works now!

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…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 560 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 347 Moderator

#3
Expiscornovus Profile Picture

Expiscornovus 262 Most Valuable Professional

Last 30 days Overall leaderboard