Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Azure DevOps Services API

I am hoping that someone can help me with the issue that I am experiencing.  

 

 I am trying to build a report that will show the count of how many projects we have across all of our Azure DevOps Services (ADS) Organizations. The report should also show the count for the projects that actually have a Build associated to it. 

 

 To accomplish this, I am calling the appropriate ADS APIs and for the most part, it is working. However, i am having an issue retrieving the build results for some projects. For example, I call the following and retrieve the count of Builds the projects has   

 

= Json.Document(Web.Contents("https://dev.azure.com/" & orgName & "/" & projectName & "/_apis/build/builds?api-version=5.0"))

Then I call the next project in the org and I receive using the same syntax and receive:Capture.PNG

I can copy and paste the URL from the Json.Document syntax above (of course putting the proper org and project name), and I get results back using a browser or Postman. Therefore, I am puzzled at why it is not working.

 

I am hoping that someone can tell me where - if possible - I can see why the error message is happening. Perhaps a log file or how I can see the actual json that is being returned to determine if it is truly an invalid json file.

 

Thank you in advance. 

 

Julio

1 ACCEPTED SOLUTION
Anonymous
Not applicable

This issue was due to the connection. Even though I am stating Json.Document, the content being returned was Web.Page. I deleted the connection and recreated it and now everything is reporting correctly.

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Smiley Happy

 

Best Regards
Maggie

Anonymous
Not applicable

This issue was due to the connection. Even though I am stating Json.Document, the content being returned was Web.Page. I deleted the connection and recreated it and now everything is reporting correctly.

Anonymous
Not applicable

If you could help me with problem related to accessing Azure DevOps analytics services using ODataFeed data source.

I posted on this link : 

Kindly help: @Anonymous @v-juanli-msft 

https://community.powerbi.com/t5/Desktop/Using-OData-Feed-Azure-DevOps-Analytics-URL-working-in-brow...

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.