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

Unable to get dynamic values for DevOps work item

Hello, 

 

When iterating through a VSTS query, I would like to set some conditions that match the Title of the work item. I imported a work item from a coworker and the flow already has a condition that searches against Title. However, I am unable to see such an option when I browse the dynamic content section. I am able to copy and paste the dynamic content though. Any help would be appreciated. 

 

 

image.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Unable to get dynamic values for DevOps work item

Hi @michawa ,

 

You could execute Flow once and then observe the name of the property contained in Body inside corresponding action.

25.PNG

Also observe peek code is now a better choice, as below:

24.PNG

 

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.
5 REPLIES 5
Super User
Super User

Re: Unable to get dynamic values for DevOps work item

Hi @michawa , 

 

You can get the fields in the dynamic content tab when you choose the action "Get Work Item Details" and not the "List Work Item" action  (or any other way that outputs a List of Work items in the form of an array. A workaround for that is to create an action to "Get work Item Details" in the apply to each control and get the details. Please refre to the screenshot below:azdeee.png

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!

michawa
Level: Powered On

Re: Unable to get dynamic values for DevOps work item

The list of work items I am getting is from the "Get Query Results" action, but I assume that your workaround should still work. However, what are you inputting for Work Item Id? I see that you are using a custom expression there to retrieve the id from the value. 

Super User
Super User

Re: Unable to get dynamic values for DevOps work item

Hey!

 

Used this expression 

items('Apply_to_each')['System.Id']

Thanks.

michawa
Level: Powered On

Re: Unable to get dynamic values for DevOps work item

Ok thanks! Is there a way I can browse the list of properties that I can accesss for a given item? (If I want to get Title but don't know that it is called System.Title)

Community Support Team
Community Support Team

Re: Unable to get dynamic values for DevOps work item

Hi @michawa ,

 

You could execute Flow once and then observe the name of the property contained in Body inside corresponding action.

25.PNG

Also observe peek code is now a better choice, as below:

24.PNG

 

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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 280 members 3,931 guests
Please welcome our newest community members: