Skip to main content

Notifications

Power Automate - Using Connectors
Answered

HTTP Request Authentication with Azure DevOps Services REST API 6.0

(0) ShareShare
ReportReport
Posted on by 13

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,

 

  • dnl_mlstn Profile Picture
    dnl_mlstn 13 on at
    Re: HTTP Request Authentication with Azure DevOps Services REST API 6.0

    Ahhhh thank you! Savior!!!

  • Verified answer
    Expiscornovus Profile Picture
    Expiscornovus 31,144 on at
    Re: HTTP Request Authentication with Azure DevOps Services REST API 6.0

    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-devops

     

    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 😁

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard

Featured topics