Occasional Contributor

When I use the "Export in Excel" option from a SharePoint library, this creates a query file with the iqy extension. This can be saved as an odc connection for future refreshes, but either way I'd rather handle everything via Power Query rather than mix PQ with "old school" data connections.


Export to Excel from SharePoint libraryExport to Excel from SharePoint library

The Excel table built via the iqy file or resulting odc connection (through Data > Existing Connections) includes extra columns that we added to the library

User-created columnsUser-created columns

via iqy query / odc connectionvia iqy query / odc connection

However using PQ to retrieve a SharePoint folder only returns default columns:

Get Data > From SharePoint FolderGet Data > From SharePoint Folder

I also had a look at results returned by the SharePoint Lists and Odata feed connectors, and they return way more than what I need (and I'm not sure they have what I do need, I'd rather mess around with these if I don't have to).


Is there a way to get the same results via Power Query that you get from "Export in Excel" as detailed above? Any help appreciated.

This is with Excel 2016 (up-to-date O365 ProPlus monthly release) and SharePoint Online. I haven't tried from PBI Desktop though I'd expect the same behavior.