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

Query for a result within a result using Logic Apps

I have a JSON document within CosmosDB that looks like this

{
"id":"1234-11111-22222-2222"
"Feedbacks": [
{ "id": "abc"
}
]
}


I would like to first find all the documents where the ids are >15 and then loop over and find all the feedbacks that are associated with this result. How would I do this using the LogicApp? I have an idea and this is what I have done so far:

 

jasmine2020_0-1597107113766.png

 

 

 

 

 

I am not sure what the next step should be? Should I perform another query? if so, what would this be?

Select c.Feedbacks from ...?

 

Because now that I have my first result from query 1, I need to query within this result for all of the Feedback ids


Any help or suggestion is appreciated.

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Query for a result within a result using Logic Apps

Hi @jasmine2020 ,

 

After you get the json output from a previous action in flow. You can make use of Filter array action to query the results further 

vikulkar_0-1597241760361.png

 

Hopefully this helps.

 

Thanks and Regards,

       Vikas

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,265)