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 / Parsing json - get fir...
Power Automate
Unanswered

Parsing json - get first item of an array

(2) ShareShare
ReportReport
Posted on by 25
From an HTTP get call I'm getting this json back:
 
[{"Value": "BRUUL","Id": 39318,"Brussels": false}]
 
I simply want to take the value for the Id property of the first item in the array.
 
I've been reading up on articles I found via several search engines, trying with compose and set variable but either it goes into a apply each block, which I don't want, or I keep on getting the entire above string sent back to my Power Virtual Agent.
Categories:
I have the same question (0)
  • Verified answer
    DeepakS Profile Picture
    2,301 Most Valuable Professional on at

    Hi @KrisvanderMast 

     

    After you parse your JSON using parse JSON action use following expression :

    body('Parse_JSON_2')[0]['Id'] this will give you id of first item

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

     

  • KrisvanderMast Profile Picture
    25 on at

    Hi,

     

    that gives me the following error:

     

    Correct to include a valid reference to 'Parse_JSON_2' for the input parameter(s) of action 'Initialize_variable'.

     

     

  • DeepakS Profile Picture
    2,301 Most Valuable Professional on at

    Hi @KrisvanderMast 

     

    Parse_JSON_2 is the action name in my FLOW, in your flow you should use action name that in your flow. share a screen capture of your flow i will let you know what to use.

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

     

  • KrisvanderMast Profile Picture
    25 on at

    Did a rename of my action and it worked. 

     

    Is there some overview/list of functions like body() and the likes I can take a look at and learn?

  • DeepakS Profile Picture
    2,301 Most Valuable Professional on at

    Hi @KrisvanderMast 

     

    Checkout following link:

    https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • _Judy_ Profile Picture
    95 on at

    Thank youuuuuu. You are my hero. 😀

  • Chriddle Profile Picture
    8,436 Super User 2025 Season 2 on at

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard