cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
panterra
Advocate III
Advocate III

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

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

 

 

4 REPLIES 4
v-siky-msft
Community Support
Community Support

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-htt...

Best regards,

Sik

Removed response

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!

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!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,402)