I am setting up a ticketing system with ADO as the backend. I am using Power Automate to read emails and create a ticket (work item in ADO). I have described the whole flow below. I am stuck at Flow 2. I get “Not found” response when I call the add comment Azure DevOps API “[/_apis/wit/workitems/17854?api-version=7.0](mailto:/_apis/wit/workitems/@%7boutputs(‘Create_new_PBI’)?%5b’body/id’%5d%7d/?api-version=7.0)”.
I appreciate any help you can provide to resolve this issue.
My Power Automate Flow
✅Flow1 – Create new ticket: If the subject has [SR], create a work item in Azure DevOps and save the attachment to the work item
✅a) Create a work item with the subject as title and body as the description
✅b) Save the attachment to Azure DevOps using post API
✅c) Relate the attachment to the newly created work item
❌Flow2 – Add comments to existing ticket: If the subject has [SR-XXXXX], add the email body as a comment. XXXXX stands for the work items id.
Flow 2 configuration:
enter image description here
Flow 2 raw input
enter image description here
Flow 3 output
404 – Not found
Appreciate your time and help ????
I have validated the url and the work item id. Everything seems to be correct based on the API reference below.
Azure DevOps API Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/comments/add?view=azure-devops-rest-7.0&tabs=HTTP
Praveen Anuraj is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.