cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dnl_mlstn
Frequent Visitor

HTTP Request Authentication with Azure DevOps Services REST API 6.0

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,

 

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @dnl_mlstn,

 

There is a specific Send an HTTP request to Azure DevOps action which you can use instead of the HTTP action:

https://docs.microsoft.com/en-us/connectors/visualstudioteamservices/#send-an-http-request-to-azure-...

 

sendanhttprequesttoazuredevops_getrevisions.png

 

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 😁

View solution in original post

2 REPLIES 2
Expiscornovus
Super User
Super User

Hi @dnl_mlstn,

 

There is a specific Send an HTTP request to Azure DevOps action which you can use instead of the HTTP action:

https://docs.microsoft.com/en-us/connectors/visualstudioteamservices/#send-an-http-request-to-azure-...

 

sendanhttprequesttoazuredevops_getrevisions.png

 

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 😁

View solution in original post

Ahhhh thank you! Savior!!!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,189)