cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
artivo
Helper I
Helper I

Parse JSON from array object results in "apply to each" action

Hello Community,

 

i do have a flow where an ArrayVariable is dynamically filled up in an "apply to each" loop.

This works as expected.

Next task is to make each line of the array available for the root-flow via "Parse JSON".

This also works as expected.

The only issue is... when i want to use a value from the previous "Parse JSON" action in a e.g. compose action, it will automatically create an "Apply to each" loop.

This is unwanted 🙂

 

The reason for this mal-behavior seems to be the format of the JSON-content which is parsed in "[ ]".

I conclude: Whenver PowerAutomate gets a request with input in brackets, it starts an "apply to each" action.

 

Now the question: What can I do to get rid of this ?

 

Below a screenshot:

 

 

artivo_0-1653057416942.png

artivo_0-1653057840635.png

 

When I re-use content from the last "Parse JSON" connector it starts an "apply to each" even though there's no looping action.

Any Ideas ?

 

 

1 REPLY 1
ManishJain
Solution Sage
Solution Sage

Hi @artivo ,

 

Since you are using Parse Json content again and it clearly says item of type array , when you use it again or any fields inside that it will automatically consider it as array and do apply to each loop. If you are looking for particular value , go to that level first and use it .

 

Thanks

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (4,275)