cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IulianaIonita
New Member

Cannot update Azure DevOps work item for "Other Fields"

I have created a very simple flow that triggers when a Azure DevOps work item is modified. The Action is intended to update the same work item , to add in a Custom field Custom_A a computing a value from three different other fields: Custom_B x Custom_C x Custom_D. 

 

To update "Other Fields" there is a Key and a value to define:

Key = dynamic value : set to field Custom_A

Value= Expression: mul(triggerBody()?['Fields']?['CustomB'], mul(triggerBody()?['Fields']?['Custom_C'],triggerBody()?['Fields']?['Custom_D']))

 

It does not work. I get back messages :

- Field Custom_A is not a field in process...

or  "10" (with 10 = value of  field Custom_A) is not a valid field

 

Am I using the "Other Fields"  wrongly or is it not working properly? 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Cannot update Azure DevOps work item for "Other Fields"

Hi @IulianaIonita ,

 

I have tested on my side, you need to specify Project Name and Work Item Type first, the custom fields will be automatically displayed, and then you could configure accordingly.

36.PNG

Please also make sure to create custom field in the correct way, please refer to the relevant online doc:

https://docs.microsoft.com/en-us/azure/devops/organizations/settings/work/add-custom-field?view=azur...

 

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.

View solution in original post

10 REPLIES 10
Community Support
Community Support

Re: Cannot update Azure DevOps work item for "Other Fields"

Hi @IulianaIonita ,

 

I have tested on my side, you need to specify Project Name and Work Item Type first, the custom fields will be automatically displayed, and then you could configure accordingly.

36.PNG

Please also make sure to create custom field in the correct way, please refer to the relevant online doc:

https://docs.microsoft.com/en-us/azure/devops/organizations/settings/work/add-custom-field?view=azur...

 

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.

View solution in original post

IulianaIonita
New Member

Re: Cannot update Azure DevOps work item for "Other Fields"

The solutino provided is great, just what I was expecting to have in. Seeing that it work in a picture, gives me hope to have it working in my case too.

 

Unfortunatelly, it does not work just yet for me. The custom fields do not show up in the list, not even after choosing the project and work item type. The custom fields were created as described. I do not know if there is any other way to create fields, but as described ...

What could I be missing to get to select the custom fields? 

 

Capture.PNG

p4carr
New Member

Re: Cannot update Azure DevOps work item for "Other Fields"

Was there any resolve on this? I am facing the same issue.

Yash_Live Advocate I
Advocate I

Re: Cannot update Azure DevOps work item for "Other Fields"

Not sure if you were able to find a solution, If not then here it is:

 

If your fields are not showing in the list, then type the exact name of the field in the "Enter Key" box besides 'Other Fields'.

For "Enter Value" you can choose a Dynamic field.

 

It worked for me.  

ChricasMSFT
New Member

Re: Cannot update Azure DevOps work item for "Other Fields"

Can you provide a sample screenshot and code on how you are passing the values and the settings in flow.  I've tried every combination of this and I'm getting no where!

Yash_Live Advocate I
Advocate I

Re: Cannot update Azure DevOps work item for "Other Fields"

I am using the above screenshot as reference.

Marked th steps as 1 and 2 in the screenshot

 

1. Type the exact Name of the custom field as you see in your Azure WorkItem in teh "Enter Key" box (highlighted as 1 in red)

2. Select "Enter Value" box and either add dynamic or function based on your preference (highlighted as 2 in blue)

 

This works for me, share the screenshots (Azure workitem page and the flow) of what you are trying, may that way we can correct it. 

Yash_Live Advocate I
Advocate I

Re: Cannot update Azure DevOps work item for "Other Fields"

Capture.JPG

NoSysOp
New Member

Re: Cannot update Azure DevOps work item for "Other Fields"

Hi, I'm facing the same problem and I did everything you've suggested the problem is that I'm getting error cause the field is detected as "0".

 

dynamic field - part 1.pngError when testing 

The only diff. between cases I can think of is that I have a lot of fields in my form.

NoSysOp
New Member

Re: Cannot update Azure DevOps work item for "Other Fields"

Nevermind, I fixed the problem by manually typing the field name and NOT using dynamic data...

How this helps if anyone encounters such an issue.

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Kudoed Authors
Users online (8,164)