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

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 II
Super User II

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

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

Highlighted

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (9,011)