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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Laveezai
Frequent Visitor

Connect to multiple azure devops organization to retrieve projects

Hello,

As part of a project, I need to be able to connect to a number of azure devops organizations to retrieve the underlying projects.

At the moment I know how to connect to a project via odata feed or azure devops analytics connector.

But I'd like to be able to import all the projects from several organizations dynamically into power bi.

Has anyone come across this use case before?

Good evening to you 😀

 

P.S : I need to get projects but also iterations, users, workitems, areas related to all project from every organization

2 REPLIES 2
Sahir_Maharaj
Super User
Super User

Hello @Laveezai,

 

Can you please try creating the following Power Query Function (Transform Data > Advanced Editor):

let
    GetProjectsByOrganization = (Organization as text) as table =>
    let
        URL = "https://dev.azure.com/" & Organization & "/_apis/projects?api-version=6.0",
        
        Source = Json.Document(Web.Contents(URL, [Headers=[Authorization="Basic " & Text.FromBinary(Text.ToBinary("<PAT>"))]])),
        
        Projects = Source[value],

        ProjectsTable = Table.FromList(Projects, Splitter.SplitByNothing(), null, null, ExtraValues.Error),

        ExpandedTable = Table.ExpandRecordColumn(ProjectsTable, "Column1", {"id", "name", "description", "state"})
    in
        ExpandedTable
in
    GetProjectsByOrganization

After invoking the function, you will have a nested table for each organization.

 

Hope this helps!


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ About: https://sahirmaharaj.com/about.html
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Unfortunately, I get this error message when I try to apply the function for each given organization.

Laveezai_1-1733305316867.png

 

When I tested the url on chrome, I also saw that it only returned the organization's projects. I need to retrieve work items, users, area paths, iterations and underlying projects.

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.