Hi all,
We're building a few flows which sync workitems from one Azure DevOps project to another.
Also comments on a certain workitem should automatically be posted under the corresponding workitem. This has been working fine using the 'Send an HTTP request to Azure DevOps' action, until we were trying to mention/tag people in a comment.
For an unknown reason, this action keeps on throwing a 400 BadRequest error whenever we try to mention someone in a comment.
The error message itself is not very clear:
{
"status": 400,
"message": "TF400898: An Internal Error Occurred. Activity Id: d0824e80-e606-4b66-868f-cd2610ec8139.\r\nAzure DevOps ActivityId: d0824e80-e606-4b66-868f-cd2610ec8139\r\nDetails: {\"$id\":\"1\",\"innerException\":null,\"message\":\"TF400898: An Internal Error Occurred. Activity Id: d0824e80-e606-4b66-868f-cd2610ec8139.\",\"typeName\":\"Newtonsoft.Json.JsonReaderException, Newtonsoft.Json\",\"typeKey\":\"JsonReaderException\",\"errorCode\":0,\"eventId\":0}\r\nclientRequestId: d22987e9-b16b-409c-b2f8-064985951faf",
"error": {
"message": "TF400898: An Internal Error Occurred. Activity Id: d0824e80-e606-4b66-868f-cd2610ec8139.\r\nAzure DevOps ActivityId: d0824e80-e606-4b66-868f-cd2610ec8139\r\nDetails: {\"$id\":\"1\",\"innerException\":null,\"message\":\"TF400898: An Internal Error Occurred. Activity Id: d0824e80-e606-4b66-868f-cd2610ec8139.\",\"typeName\":\"Newtonsoft.Json.JsonReaderException, Newtonsoft.Json\",\"typeKey\":\"JsonReaderException\",\"errorCode\":0,\"eventId\":0}"
},
"source": "vsts-we.azconn-we-002.p.azurewebsites.net"
}
This is the body of our comment:
{
"text": "<div><a href="#" data-vss-mention="version:2.0,[userid]">[name of mentioned user]</a> </div>"
}
I've got the impression that Power Automate can't properly read this html text and convert it into a comment..
Any ideas how to solve this?
Thx!