Forum Discussion

MichaelHutchens's avatar
4 years ago
Solved

Adding multiple SharePoint libraries to a query

Hi folks, I'm trying to add multiple SharePoint libraries to the same query. Here are my libraries:   https://URL.com/sites/who-we-are/ https://URL.com/sites/tools-to-do-my-job/ https://URL.com/s...
  • sevenhills's avatar
    4 years ago

    You can start with these to get the combined source tables, and second line onwards you have to deal with GUIDs, as it is tough to understand the end goal

     

    let
        Source = Table.Combine(
            {
            SharePoint.Tables("https://URL.com/sites/who-we-are/", [Implementation="2.0", ViewMode="All"]),
            SharePoint.Tables("https://URL.com/sites/tools-to-do-my-job/", [Implementation="2.0", ViewMode="All"]),
            SharePoint.Tables("https://URL.com/sites/our-locations/", [Implementation="2.0", ViewMode="All"]),
            SharePoint.Tables("https://URL.com/sites/how-we-work/", [Implementation="2.0", ViewMode="All"])
            }
        ), 
    ...