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 / retrieve data from Par...
Power Automate
Answered

retrieve data from ParseJSON output

(0) ShareShare
ReportReport
Posted on by

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard