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

Capture Approval Comment in Azure DevOps Discussion

I'm relatively new to using Flow, but I'm hoping someone can help point me in the right direction.

 

I have an approval process that begins with a trigger (When a work item is updated). The flow works fine until the first approval is provided. Since comments are not required on the approval, the comment may contain a NULL value, and that is where my Flow breaks down.

 

I have a Condition set based on the Approval:

image.png

 

I'm attempting to capture the Approval Comments on the Azure DevOps work item, in the Discussion area:

image.png

 

When this Flow runs, I receive the following error:

InvalidTemplate. Unable to process template language expressions in action 'Update_a_work_item' inputs at line '1' and column '2623': 'Unable to evaluate template language expression '@triggerBody()?['fields']?['System_History']' as JSON property name: the expression value of type 'Null' could not be used as property name.'.

image.png

 

Any help is greatly appreciated. Our ability to capture Approval comments on the DevOps work item is an integral piece of this Flow.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Capture Approval Comment in Azure DevOps Discussion

Hi @gsiconolfi87 ,

 

I have made some tests and I found that we should manually input the field name instead of selecting dynamic contents from previous actions.

 

I have configured the flow likes below, which is working properly.

1.PNG

 

Best regards,

Mabel          

 

Community Support Team _ Mabel Mao
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

1 REPLY 1
Highlighted
Community Support Team
Community Support Team

Re: Capture Approval Comment in Azure DevOps Discussion

Hi @gsiconolfi87 ,

 

I have made some tests and I found that we should manually input the field name instead of selecting dynamic contents from previous actions.

 

I have configured the flow likes below, which is working properly.

1.PNG

 

Best regards,

Mabel          

 

Community Support Team _ Mabel Mao
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

Helpful resources

Announcements
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!

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 (4,127)