cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Vvitas
Level: Powered On

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

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!

Community Support Team
Community Support Team

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,107)