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

Filtering a Devops Query by States or Area Paths

I have a DevOps query that gives me a list of records.

I want to filter these by their Area Paths that I have a record of, inside SharePoint.

Is there some way to to do this? 

 

I thought I would be able to output into an HTML table and filter on the rows but I can't figure out how to do that. Any help would be appreciated. 

 

image.png

2 REPLIES 2
Highlighted
Dual Super User III
Dual Super User III

Re: Filtering a Devops Query by States or Area Paths

HI @Vvitas 

 

Yes. You can modify your query/ create a new one with dynamic parameters and get the response from Azure DevOps. Please have a look at the article below for a step by step procedure for the same. If you have worked with wiql queries in Azure DevOps, you need to simply create the query there and export the wiql structure and use it in the http request section of the flow. 

https://powerusers.microsoft.com/t5/Microsoft-Flow-Community-Blog/Create-Update-Parameterized-Querie...

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted
Community Support
Community Support

Re: Filtering a Devops Query by States or Area Paths

Hi @Vvitas ,

 

If you want to filter the work item using the field values in the specified item, you could use Get item action and specify the item id.

The response of Get query result action does not include Area Path. We need to use Get work item details action to get more information.

 

Please refer to the following image to configure Flow.

Configure array variable to store the data that needs to be rendered in Html table.

Imgae reference:

56.PNG

Configuration of Apply to each:

57.PNG

There is a caveat here. When configuring Work Item Type field, choose a Type at random. After all the configuration is completed, click Enter custom value to fill Work Item type.

58.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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,160)