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
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:
You can use "Count()" function to know how many users in this object:
%Count(JsonAsCustomObject['users'])%
Then iterate the Loop for all users in this object using variable %LoopIndex% to retrieve first name of each users:
%JsonAsCustomObject['users'][LoopIndex]['firstName']%
Please try it.
Thank you.
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
WarrenBelz
146,658
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional