cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Getting value of "key" and "value" from each object in an array of objects

Having trouble implementing the solutions I have come across on here.

Basically, if I have a key:value pair like:

 

{
  "name": "test"
}

The array of objects has about 12 objects in it. I want to be able to get the value of the key ("name") and the value ("test").

The only thing I'm getting back is "Click to download" for input and output. Not sure what I'm doing wrong.

This is my Flow:

Capture.PNG

The result:

Capture1.PNG

 

3 REPLIES 3
Highlighted
Super User
Super User

Re: Getting value of "key" and "value" from each object in an array of objects

Did you copy the payload into the action to generate the schema or just typed it in yourself?

 

ITs quite good at building schema automatically and then should give you the desired result.

Highlighted
Helper III
Helper III

Re: Getting value of "key" and "value" from each object in an array of objects

Hi, I've tried both (manual and automatic) with the same results. The automatic generates what I did manually.

Highlighted
Super User
Super User

Re: Getting value of "key" and "value" from each object in an array of objects

Hi,

 

The issue is your input does not match the schema.

 

The schema is expecting the input to be

 

{
"key": "test"
}

 

your input is:

 

{
"ave": "test"
}

 

in the schema remain ave to key and you will be good

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (7,316)