cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate I
Advocate I

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
Community Support
Community Support

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
Community Support
Community Support

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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (3,879)