cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
panterra
Level 8

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

 

Call to DevOps.pngThis is the call I am making to Azure DevOpsResponse from Dev Ops.pngThis is the response I am getting from Azure DevOps

 

 

4 REPLIES 4
v-siky-msft
Level 10

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

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

Highlighted
seanpanter
Level: Powered On

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

Removed response

panterra
Level 8

Re: AzureDevOps.HttpRequest GET Method - Unable to Get a Valid 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!

panterra
Level 8

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

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,236)