cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gsiconolfi87
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
v-yamao-msft
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
v-yamao-msft
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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (40,763)