web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / AzureDevOps.HttpReques...
Power Apps
Unanswered

AzureDevOps.HttpRequest GET Method - Unable to Get a Valid Response

(0) ShareShare
ReportReport
Posted on by 207

Hi Everyone,

 

I am working with the AzureDevOps.HttpRequest action in a PowerApp. I am able to make a POST call using this action to create a new project without a problem. 

 

However, when I try to make a GET call to (for example) return a list of all the projects in an organization, I do not get a response. I am not sure where I am going wrong on this one. 

 

To tell the complete story, I am including 2 images one of the expression and one of the response. 

 

Thank you for your time and attention! 

Sean

 

This is the call I am making to Azure DevOpsThis is the call I am making to Azure DevOpsThis is the response I am getting from Azure DevOpsThis is the response I am getting from Azure DevOps

 

 

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @panterra 

     

    Could you please navigate to Organization Settings-(Security)Policies, and check if the option “Third-party application access via OAuth” is turned on?

    12.png

    This issue is properly due to Azure DevOps, you would get even more help if you post your issue to  Azure DevOps Developer Community.

    The following is a similar thread for you reference:

    https://developercommunity.visualstudio.com/content/problem/644709/401-unauthorized-azure-devops-http-request-with-ms.html

    Best regards,

    Sik

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Removed response

  • panterra Profile Picture
    207 on at

    Hi @v-siky-msft ,

     

    Thank you very much for your response. I verified the settings you recommended - still no luck.

     

    I am not sure if this is a DevOps issue - I am able to successfully run this call using the same Connector and Action via MS Flow. Below are two screenshots - One is how I have setup this same action in MS Flow and the a second screenshot is of the response I get in MS Flow. 

     

    1 - Flow Action - DevOps HTTP.png2 - Response from Dev Ops.png

     

    Here is the complete expression I am writing in PowerApps:

    Pseudocode: 

    • Call the AzureDevOps.HTTPRequest Action
      • Hit the endpoint: /_apis/projects?api-version=5.1
    • Clear the Collection collProjects
    • Load the results of the call to AzureDevOps here

     

    ClearCollect(
     collProjects,
     AzureDevOps.HttpRequest(
     varDevOpsAccount,
     "GET",
     "/_apis/projects?api-version=5.1",
     {
     Headers: collDevOpsHeaders, Body:"",IsBase64:false
     }
     )
    )

     

    Please let me know if you have any other thoughts around what may be causing this issue. 

     

    I think this may have to do with the way this connector performs wthin PowerApps vs. MS Flow - or how I am calling the Connector / Action from PowerApps. As the same action works in MS Flow

     

    Thank you!

  • panterra Profile Picture
    207 on at

    Hi, @v-siky-msft @v-bacao-msft  Is there anyone who can confirm whether or not this is an issue with how I am using this connector in PowerApps?

     

    Many thanks. If there is more information I can provide that would clarify details, please let me know!

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard