Forum Discussion
Olivier Travers
Oct 02, 2018Copper Contributor
How to get SharePoint Library metadata / custom columns in Excel via PowerQuery?
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 ra...
Jamsie
Apr 15, 2021Copper Contributor
Hi Olivier Travers ,
I had the same use case. My workaround was:
- Query 1 - load the document library data as a SharePoint List into a table.
- Query 2 use SharePoint.Files to load in the file data.
- In Query 2 merge in Query 1 using an inner join matched on the filename
- Expand out the metadata columns I needed from the library data table
- Remove all columns other than the required metadata and Content
- Fileted hidden files
- Extract table from content
- Expand table
- Remove content column
- Other data processing as required
This gave me exactly what I needed. Hopefully it will help you too.