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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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-browser/m-p/891228

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors