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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / retrieve data from Par...
Power Automate
Answered

retrieve data from ParseJSON output

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, I'm making a chatbot using Power Virtual Agents, I'm at the step parsing JSON data to return to the PVA chatbot. This happens regularly.Below is the output from the Parse JSON ( first picture).

IMG_7874.jpg

When I try to choose "amount" a warning will pop up ( second picture), I believe because it's in the array.

IMG_7875.jpg

I need help retrieving those data so I can use them to display on chatbot.

Categories:
I have the same question (0)
  • Verified answer
    Ellis Karim Profile Picture
    11,823 Super User 2026 Season 1 on at

    You can use an expression to reference the amount. Amount is a property of the cashBalance array, and you need to reference the first item of the array.  The array only has one item or element. The first item of the array is always number 0 (zero). For example:

    2021-12-23_15-42-05.png

    2021-12-23_15-42-37.png

    outputs('Compose')?['cashBalance']?[0]?['amount']

    Example runtime output:

    2021-12-23_15-47-44.png


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

     

  • Verified answer
    Ellis Karim Profile Picture
    11,823 Super User 2026 Season 1 on at

    You dont need to use Parse JSON reference the amount property. But if you wish to get the Amount from the Parse JSON action, you can use the following expression:

    2021-12-27_18-30-29.png

     

    body('Parse_JSON')?['cashBalance']?[0]?['amount']

     

     

    2021-12-27_18-34-27.png

    Note that both expressions are the same, they just differ on where the expression is getting its input from:

     

    outputs('Compose')?['cashBalance']?[0]?['amount']
    body('Parse_JSON')?['cashBalance']?[0]?['amount']

     

     

    Ellis

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you, it works

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard