Hi,
I have a rookie authentication problem that I cannot figure out:
I have access to a DevOps organization and project. I would like to use Power Automate to export the workitem history from there, via the API. I am using the following API call in a HTTP step in my flow: https://dev.azure.com/{organization}/{project}/_apis/wit/reporting/workItemRevisions
The HTTP step fails with Error 302 - "Object moved to <URL>" - I believe that the issue is with the authentication field. I have no idea what authentication to choose and what to put in the various fields I have 0 experience with this. When I paste the same API URL into my browser I can see the JSON output without problems. To DevOps itself I am logged in with my corporate MS account (I tried to use the email+password combo for Basic authentication but it did not work either).
I am not really sure where to go from there, so if anyone could help explain how I can set this up I would be very grateful! I have no idea what authentication type to choose and how to get the required credentials.
Best regards,
Ahhhh thank you! Savior!!!
Hi @dnl_mlstn,
There is a specific Send an HTTP request to Azure DevOps action which you can use instead of the HTTP action:
With this action you don't have to worry about configuring authentication. Obviously the user which is used for the connection still needs enough permission on the project though 😁