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 read a value fr...
Power Automate
Unanswered

How to read a value from array object by name?

(0) ShareShare
ReportReport
Posted on by 10

I have a output from HTTP as an array like below

[
{
"country": "USA",
"kpi": "Sales",
"value": "4444",
"indicator": "same"
},
{
"country": "USA",
"kpi": "Revenue",
"value": "5555",
"indicator": "same"
},
{
"country": "China",
"kpi": "Sales",
"value": "3333",
"indicator": "same"
},
{
"country": "China",
"kpi": "Revenue",
"value": "3444",
"indicator": "same"
}
]

 

Now i want to read Sales value for say USA, how do i achieve this using expressions so that i can form a HTML body out of this

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

    Hi @sathishsam 

     

    I have made a test for your reference:

    1.

    vliweimsft_0-1678089886418.png

     

    2.

    vliweimsft_1-1678089922822.png

     

    Best Regards,

    Levi

     

  • sathishsam Profile Picture
    10 on at

    Thanks Levi.

    However, in my case this will not work as i have too many items in the array and i have write filter for each expression. For example if i want to find a value of Revenue of China, how do i find it using an expression?

  • v-liwei-msft Profile Picture
    on at

    Hi @sathishsam 

     

    Are you trying to perform a filter per country?

    vliweimsft_0-1678091610344.png

     

    Best Regards,

    Levi

  • sathishsam Profile Picture
    10 on at

    I have next action to send email with some custom formats and have to render each KPI in the email

  • v-liwei-msft Profile Picture
    on at

    Hi @sathishsam 

     

    Could you please show me an example?

     

    Best Regards,

    Levi

  • sathishsam Profile Picture
    10 on at

    sathishsam_0-1678092727328.png

    Something similar as shown in above example

     

  • v-liwei-msft Profile Picture
    on at

    Hi @sathishsam 

      

    So you want to get sales and revenue for each country?

    You can use the second method I provided.

     

    Best Regards,

    Levi

  • sathishsam Profile Picture
    10 on at

    you mean to build the html table dynamically under apply for each and then concatenate ?

  • sathishsam Profile Picture
    10 on at

    Is there no easy way to directly query the JSON and append the values in my HTML tempelate
    <table>

    <tr><td>INDIA <br> json['India']['Sales'].value <td><tr>

    ......

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