Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Qd8ED4czWC13fziAA0WD8D
Power Automate - Power Automate Desktop
Unanswered

How to get value of a particular key in json format in power automate desktop

Like (0) ShareShare
ReportReport
Posted on 30 Sep 2021 11:54:31 by 18

When I use get method to invoke a web service I get the entire page in json format , I want only value using key in json .

How do I filter out value using key in power automate desktop , should I perform loops or condition to retrieve one particular value using key which is in json format 

Kindly help me out 

  • Community Power Platform Member Profile Picture
    on 02 Oct 2021 at 05:22:40
    Re: How to get value of a particular key in json format in power automate desktop

    Hello @Pavibhau_3698 

     

    After you converted the JSON to Custom Object in PAD, you can retrieve the value from custom object using index number.

    For instance, I created the sample flow like below:

     

    shindomo_0-1633151359004.png

     

    You can use "Count()" function to know how many users in this object:

    %Count(JsonAsCustomObject['users'])%

     

    shindomo_1-1633151375080.png

     

    Then iterate the Loop for all users in this object using variable %LoopIndex% to retrieve first name of each users:

    %JsonAsCustomObject['users'][LoopIndex]['firstName']%

     

    shindomo_2-1633151384819.png

     

    Please try it.

    Thank you.

  • Pavibhau_3698 Profile Picture
    18 on 30 Sep 2021 at 12:36:30
    Re: How to get value of a particular key in json format in power automate desktop

    Hi,

    This didnt help coz the json didnt get converted to proper list to iterate particular list[0],list[2]

    how to convert json object to proper list so I can use index to retrieve particular value 

  • VJR Profile Picture
    7,635 on 30 Sep 2021 at 12:01:06
    Re: How to get value of a particular key in json format in power automate desktop

    Hello @Pavibhau_3698 

     

    Could you take a look at the solution links here.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard
Loading started